summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2014-03-05 14:20:47 +0800
committerXinchen Hui <laruence@gmail.com>2014-03-05 14:20:47 +0800
commitf76a64fd3a7f13f31df8944234c228b1769e79ba (patch)
treee6d969d898c8305fc8d36343d8344c566b928e65
parentd5fa6b24670d321edfc7abc3895b1ee83d5b623b (diff)
downloadphp-git-f76a64fd3a7f13f31df8944234c228b1769e79ba.tar.gz
Fixed variable name register
-rw-r--r--main/php_variables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_variables.c b/main/php_variables.c
index d8277d267a..671d8e59ff 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);