summaryrefslogtreecommitdiff
path: root/ext/intl/php_intl.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-07-24 11:58:10 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-07-24 11:58:10 +0200
commit27ad19c3e8d4fe61ce9c8cec9e50062acf2255c1 (patch)
tree9afc82ffc85418df984c0ca0e74d2401ecf584f4 /ext/intl/php_intl.h
parent7eec281b5ea82663bfe9ee47bcc8a4d0b9c212e8 (diff)
downloadphp-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.h2
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;