rasmus Thu Sep 9 12:07:54 2004 EDT Modified files: (Branch: PHP_4_3) /php-src/main php_variables.c Log: Stop at the index on an unmatched [ http://cvs.php.net/diff.php/php-src/main/php_variables.c?r1=1.45.2.6&r2=1.45.2.7&ty=u Index: php-src/main/php_variables.c diff -u php-src/main/php_variables.c:1.45.2.6 php-src/main/php_variables.c:1.45.2.7 --- php-src/main/php_variables.c:1.45.2.6 Mon Oct 13 23:48:09 2003 +++ php-src/main/php_variables.c Thu Sep 9 12:07:53 2004 @@ -16,7 +16,7 @@ | Zeev Suraski <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: php_variables.c,v 1.45.2.6 2003/10/14 03:48:09 iliaa Exp $ */ +/* $Id: php_variables.c,v 1.45.2.7 2004/09/09 16:07:53 rasmus Exp $ */ #include <stdio.h> #include "php.h" @@ -129,7 +129,7 @@ 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; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php