We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3159a96 commit e44ccdeCopy full SHA for e44ccde
ext/pcre/php_pcre.c
@@ -262,7 +262,13 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex)
262
if (pce->locale == BG(locale_string) ||
263
(pce->locale && BG(locale_string) &&
264
pce->locale->len == BG(locale_string)->len &&
265
- !memcmp(pce->locale->val, BG(locale_string)->val, pce->locale->len))) {
+ !memcmp(pce->locale->val, BG(locale_string)->val, pce->locale->len)) ||
266
+ (!pce->locale &&
267
+ BG(locale_string)->len == 1 &&
268
+ BG(locale_string)->val[0] == 'C') ||
269
+ (!BG(locale_string) &&
270
+ pce->locale->len == 1 &&
271
+ pce->locale->val[0] == 'C')) {
272
return pce;
273
}
274
#else
0 commit comments