Mark PCRE locale key as local persistent

This commit is contained in:
Nikita Popov 2019-08-13 14:35:08 +02:00
parent eb25176ab3
commit 201729840c

View file

@ -761,6 +761,7 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex)
return NULL; return NULL;
} }
_k = zend_string_init(ZSTR_VAL(BG(locale_string)), ZSTR_LEN(BG(locale_string)), 1); _k = zend_string_init(ZSTR_VAL(BG(locale_string)), ZSTR_LEN(BG(locale_string)), 1);
GC_MAKE_PERSISTENT_LOCAL(_k);
zend_hash_add_ptr(&char_tables, _k, (void *)tables); zend_hash_add_ptr(&char_tables, _k, (void *)tables);
zend_string_release(_k); zend_string_release(_k);
} }