Skip to content

Commit

Permalink
Merge branch 'PHP-8.3' into PHP-8.4
Browse files Browse the repository at this point in the history
* PHP-8.3:
  Postpone zend_array_sort() in ext-intl
  Use bool for zend_array_sort()
  • Loading branch information
iluuu1994 committed Nov 4, 2024
2 parents 230defc + 7456842 commit 085c151
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Zend/zend_hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
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 085c151

Please sign in to comment.