summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-08-13 14:35:08 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-08-13 14:49:59 +0200
commit201729840cc57c622c0a88823ced8ed73054eb27 (patch)
tree48a4b8cb022e52a107af2435f95719a29009dd86 /ext/pcre/php_pcre.c
parenteb25176ab3130a2f158de284d8e316a9e1f9c840 (diff)
downloadphp-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.c1
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);
}