mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Postpone zend_array_sort() in ext-intl
This function is not ZEND_API yet, so we cannot use it as it won't work for dynamically linked extensions.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user