From: Rasmus Lerdorf Date: Thu, 9 Sep 2004 16:07:53 +0000 (+0000) Subject: Stop at the index on an unmatched [ X-Git-Tag: php-4.3.9RC3~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18fdb3b33e3daae1a690319840f1298b33f2d6e4;p=php Stop at the index on an unmatched [ --- diff --git a/main/php_variables.c b/main/php_variables.c index 58bf2f5583..71a9998c70 100644 --- a/main/php_variables.c +++ b/main/php_variables.c @@ -129,7 +129,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; }