1
0
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:
Ilija Tovilo
2024-11-04 16:01:00 +01:00
parent 4b9e59b430
commit 845cdbce67

View File

@@ -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;