mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: Postpone zend_array_sort() in ext-intl Use bool for zend_array_sort()
This commit is contained in:
commit
085c151481
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue