From c6982995504b6e21e8a5ade29cfb16a55196dc43 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Sat, 4 Mar 2017 10:39:13 +0100 Subject: Interned strings unification for TS/NTS Hereby, interned strings are supported in thread safe PHP. The patch implements two types of interned strings - interning per process, strings are not freed till process end - interning per request, strings are freed at request end There is no runtime interning. With Opcache, all the permanent iterned strings are copied into SHM on startup, additional copying into SHM might happen on demand. --- Zend/zend_ini.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zend/zend_ini.c') diff --git a/Zend/zend_ini.c b/Zend/zend_ini.c index 4dd1bbe7c9..e6070dfb91 100644 --- a/Zend/zend_ini.c +++ b/Zend/zend_ini.c @@ -359,7 +359,7 @@ ZEND_API int zend_alter_ini_entry_ex(zend_string *name, zend_string *new_value, ini_entry->orig_value = ini_entry->value; ini_entry->orig_modifiable = modifiable; ini_entry->modified = 1; - zend_hash_add_ptr(EG(modified_ini_directives), name, ini_entry); + zend_hash_add_ptr(EG(modified_ini_directives), ini_entry->name, ini_entry); } duplicate = zend_string_copy(new_value); -- cgit v1.2.1