com php-src: Use interned strings as variable names: main/php_variables.c

From: Date: Thu, 30 Nov 2017 22:37:48 +0000
Subject: com php-src: Use interned strings as variable names: main/php_variables.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-100458@lists.php.net to get a copy of this message
Commit: cc6a41fad18c0854d312409c27bd81e670d41e41 Author: Dmitry Stogov <dmitry@zend.com> Fri, 1 Dec 2017 01:37:48 +0300 Parents: 7cc6f601345ea59b5a6a20b45e72328489a48336 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=cc6a41fad18c0854d312409c27bd81e670d41e41 Log: Use interned strings as variable names Changed paths: M main/php_variables.c Diff: diff --git a/main/php_variables.c b/main/php_variables.c index 43cadb1..74aa8c5 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); } } }

« previous php.cvs (#100458) next »