summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-08-13 14:54:57 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-08-13 14:54:57 +0200
commit8c927442b45da4934e1b6afe28ab43abd4a5f796 (patch)
tree020aae37295c3b8e74eb6854d4e86be868c3e5d4 /ext/pcre/php_pcre.c
parent1dc88ff67e64a2fdd6ec7807758d7b88d577b4f9 (diff)
parent60a7e60b61b8e4a3d455974c83f76a26546ce117 (diff)
downloadphp-git-8c927442b45da4934e1b6afe28ab43abd4a5f796.tar.gz
Merge branch 'PHP-7.4'
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 4a603ec99d..c21b077772 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -753,6 +753,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);
}