From 201729840cc57c622c0a88823ced8ed73054eb27 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 13 Aug 2019 14:35:08 +0200 Subject: [PATCH] Mark PCRE locale key as local persistent --- ext/pcre/php_pcre.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.40.0