]> granicus.if.org Git - php/commit
Validate collator earlier during sort
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 24 Jul 2020 09:58:10 +0000 (11:58 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 24 Jul 2020 09:58:10 +0000 (11:58 +0200)
commit27ad19c3e8d4fe61ce9c8cec9e50062acf2255c1
tree9afc82ffc85418df984c0ca0e74d2401ecf584f4
parent7eec281b5ea82663bfe9ee47bcc8a4d0b9c212e8
Validate collator earlier during sort

Check this once before the sort, instead of on every compare.
Also directly store the UCollator to make things more obvious.
ext/intl/collator/collator_sort.c
ext/intl/php_intl.c
ext/intl/php_intl.h