Skip to content

Commit

Permalink
Postpone zend_array_sort() in ext-intl
Browse files Browse the repository at this point in the history
This function is not ZEND_API yet, so we cannot use it as it won't work for
dynamically linked extensions.
  • Loading branch information
iluuu1994 committed Nov 4, 2024
1 parent 4b9e59b commit 845cdbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/intl/collator/collator_sort.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ static void collator_sort_internal( int renumber, INTERNAL_FUNCTION_PARAMETERS )
INTL_G( current_collator ) = co->ucoll;

/* Sort specified array. */
zend_array_sort(hash, collator_compare_func, renumber);
zend_hash_sort(hash, collator_compare_func, renumber);

/* Restore saved collator. */
INTL_G( current_collator ) = saved_collator;
Expand Down

0 comments on commit 845cdbc

Please sign in to comment.