mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Make a copy unconditionally
This commit is contained in:
parent
9278be148e
commit
68c34ce0dc
1 changed files with 1 additions and 1 deletions
|
@ -739,7 +739,7 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex)
|
||||||
efree(pattern);
|
efree(pattern);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
_k = zend_string_dup(BG(locale_string), 1);
|
_k = zend_string_init(ZSTR_VAL(BG(locale_string)), ZSTR_LEN(BG(locale_string)), 1);
|
||||||
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