diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h index 97d91c2733a5a..5865c735eec48 100644 --- a/Zend/zend_hash.h +++ b/Zend/zend_hash.h @@ -309,7 +309,7 @@ static zend_always_inline void ZEND_FASTCALL zend_hash_sort(HashTable *ht, bucke /* Use this variant over zend_hash_sort() when sorting user arrays that may * trigger user code. It will ensure the user code cannot free the array during * sorting. */ -static zend_always_inline void zend_array_sort(HashTable *ht, bucket_compare_func_t compare_func, zend_bool renumber) { +static zend_always_inline void zend_array_sort(HashTable *ht, bucket_compare_func_t compare_func, bool renumber) { zend_array_sort_ex(ht, zend_sort, compare_func, renumber); } diff --git a/ext/intl/collator/collator_sort.c b/ext/intl/collator/collator_sort.c index f8871aaef7090..c28ffb82cf737 100644 --- a/ext/intl/collator/collator_sort.c +++ b/ext/intl/collator/collator_sort.c @@ -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;