Skip to content

Commit 773e90c

Browse files
committed
Implement transitive comparison for array sorting
Introduces localized transitive comparators (including array/object recursion and HashTable helpers) so SORT_REGULAR sorting and array_unique() can enforce consistent ordering without touching zend_compare(). The sort entry points now detect when mixed numeric string semantics are needed and delegate to php_array_sort_regular(), while array_unique() switches to the same comparator when required. Fixes: GH-20262
1 parent ca7f556 commit 773e90c

File tree

4 files changed

+1037
-19
lines changed

4 files changed

+1037
-19
lines changed

0 commit comments

Comments
 (0)