Skip to content

Commit 2017298

Browse files
committed
Mark PCRE locale key as local persistent
1 parent eb25176 commit 2017298

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/pcre/php_pcre.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,7 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex)
761761
return NULL;
762762
}
763763
_k = zend_string_init(ZSTR_VAL(BG(locale_string)), ZSTR_LEN(BG(locale_string)), 1);
764+
GC_MAKE_PERSISTENT_LOCAL(_k);
764765
zend_hash_add_ptr(&char_tables, _k, (void *)tables);
765766
zend_string_release(_k);
766767
}

0 commit comments

Comments
 (0)