rasmus Thu Sep 9 12:10:24 2004 EDT
Modified files:
/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.81&r2=1.82&ty=u
Index: php-src/main/php_variables.c
diff -u php-src/main/php_variables.c:1.81 php-src/main/php_variables.c:1.82
--- php-src/main/php_variables.c:1.81 Sun Jul 11 17:14:50 2004
+++ php-src/main/php_variables.c Thu Sep 9 12:10:24 2004
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_variables.c,v 1.81 2004/07/11 21:14:50 sesser Exp $ */
+/* $Id: php_variables.c,v 1.82 2004/09/09 16:10:24 rasmus Exp $ */
#include <stdio.h>
#include "php.h"
@@ -133,7 +133,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