summaryrefslogtreecommitdiff
path: root/main/php_variables.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2004-09-09 16:10:24 +0000
committerRasmus Lerdorf <rasmus@php.net>2004-09-09 16:10:24 +0000
commitbb8167cda308394a7d4d689bfdf12292b9eb4e04 (patch)
tree12a6ff65bccf90411a266ef78f2066d9ef02fb7c /main/php_variables.c
parent7bfb397338475056724b5e2d60f79d6d905df944 (diff)
downloadphp-git-bb8167cda308394a7d4d689bfdf12292b9eb4e04.tar.gz
Stop at the index on an unmatched [
Diffstat (limited to 'main/php_variables.c')
-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 498d4b173d..5edfcd9206 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -133,7 +133,7 @@ PHPAPI void php_register_variable_ex(char *var, zval *val, pval *track_vars_arra
if (!ip) {
/* PHP variables cannot contain '[' in their names, so we replace the character with a '_' */
*(index_s - 1) = '_';
- index_len = var_len = strlen(var);
+ index_len = var_len = strlen(index);
goto plain_var;
return;
}