diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-07-24 11:58:10 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-07-24 11:58:10 +0200 |
commit | 27ad19c3e8d4fe61ce9c8cec9e50062acf2255c1 (patch) | |
tree | 9afc82ffc85418df984c0ca0e74d2401ecf584f4 /ext/intl/php_intl.h | |
parent | 7eec281b5ea82663bfe9ee47bcc8a4d0b9c212e8 (diff) | |
download | php-git-27ad19c3e8d4fe61ce9c8cec9e50062acf2255c1.tar.gz |
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.
Diffstat (limited to 'ext/intl/php_intl.h')
-rw-r--r-- | ext/intl/php_intl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/intl/php_intl.h b/ext/intl/php_intl.h index 506797a36d..b878371764 100644 --- a/ext/intl/php_intl.h +++ b/ext/intl/php_intl.h @@ -44,7 +44,7 @@ extern zend_module_entry intl_module_entry; #endif ZEND_BEGIN_MODULE_GLOBALS(intl) - zval current_collator; + struct UCollator *current_collator; char* default_locale; collator_compare_func_t compare_func; UBreakIterator* grapheme_iterator; |