diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-08-13 14:35:08 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-08-13 14:49:59 +0200 |
commit | 201729840cc57c622c0a88823ced8ed73054eb27 (patch) | |
tree | 48a4b8cb022e52a107af2435f95719a29009dd86 /ext/pcre/php_pcre.c | |
parent | eb25176ab3130a2f158de284d8e316a9e1f9c840 (diff) | |
download | php-git-201729840cc57c622c0a88823ced8ed73054eb27.tar.gz |
Mark PCRE locale key as local persistent
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index cae276134c..a3d2837c38 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -761,6 +761,7 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex) return NULL; } _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_string_release(_k); } |