mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Mark PCRE locale key as local persistent
This commit is contained in:
parent
eb25176ab3
commit
201729840c
1 changed files with 1 additions and 0 deletions
|
@ -761,6 +761,7 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
_k = zend_string_init(ZSTR_VAL(BG(locale_string)), ZSTR_LEN(BG(locale_string)), 1);
|
_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_hash_add_ptr(&char_tables, _k, (void *)tables);
|
||||||
zend_string_release(_k);
|
zend_string_release(_k);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue