summaryrefslogtreecommitdiff
path: root/main/php_variables.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2017-12-01 01:37:48 +0300
committerDmitry Stogov <dmitry@zend.com>2017-12-01 01:37:48 +0300
commitcc6a41fad18c0854d312409c27bd81e670d41e41 (patch)
tree5a51b405267a627c4164a658b8da27825f2eb7c4 /main/php_variables.c
parent7cc6f601345ea59b5a6a20b45e72328489a48336 (diff)
downloadphp-git-cc6a41fad18c0854d312409c27bd81e670d41e41.tar.gz
Use interned strings as variable names
Diffstat (limited to 'main/php_variables.c')
-rw-r--r--main/php_variables.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/php_variables.c b/main/php_variables.c
index 43cadb147a..74aa8c52ca 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -253,7 +253,9 @@ plain_var:
zend_symtable_str_exists(symtable1, index, index_len)) {
zval_ptr_dtor(&gpc_element);
} else {
- gpc_element_p = zend_symtable_str_update_ind(symtable1, index, index_len, &gpc_element);
+ zend_string *key = zend_string_init_interned(index, index_len, 0);
+ gpc_element_p = zend_symtable_update_ind(symtable1, key, &gpc_element);
+ zend_string_release(key);
}
}
}