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 9278be1 commit 68c34ceCopy full SHA for 68c34ce
ext/pcre/php_pcre.c
@@ -739,7 +739,7 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex)
739
efree(pattern);
740
return NULL;
741
}
742
- _k = zend_string_dup(BG(locale_string), 1);
+ _k = zend_string_init(ZSTR_VAL(BG(locale_string)), ZSTR_LEN(BG(locale_string)), 1);
743
zend_hash_add_ptr(&char_tables, _k, (void *)tables);
744
zend_string_release(_k);
745
0 commit comments