com php-src: Fixed variable name register: main/php_variables .c
| From: | Dmitry Stogov | Date: | Wed, 05 Mar 2014 06:20:47 +0000 |
| Subject: | com php-src: Fixed variable name register: main/php_variables .c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77740@lists.php.net to get a copy of this message | ||
Commit: f76a64fd3a7f13f31df8944234c228b1769e79ba
Author: Xinchen Hui <laruence@gmail.com> Wed, 5 Mar 2014 14:20:47 +0800
Parents: d5fa6b24670d321edfc7abc3895b1ee83d5b623b
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f76a64fd3a7f13f31df8944234c228b1769e79ba
Log:
Fixed variable name register
Changed paths:
M main/php_variables.c
Diff:
diff --git a/main/php_variables.c b/main/php_variables.c
index d8277d2..671d8e5 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -183,7 +183,7 @@ PHPAPI void php_register_variable_ex(char *var_name, zval *val, zval *track_vars
if ((gpc_element_p = zend_symtable_str_find(symtable1, index, index_len)) == NULL
|| Z_TYPE_P(gpc_element_p) != IS_ARRAY) {
array_init(&gpc_element);
- gpc_element_p = zend_symtable_str_update(symtable1, index, index_len + 1, &gpc_element);
+ gpc_element_p = zend_symtable_str_update(symtable1, index, index_len, &gpc_element);
}
}
symtable1 = Z_ARRVAL_P(gpc_element_p);