cvs: php-src(PHP_5_0) /main php_variables.c
| From: | Rasmus Lerdorf | Date: | Thu, 09 Sep 2004 16:21:50 +0000 |
| Subject: | cvs: php-src(PHP_5_0) /main php_variables.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-28625@lists.php.net to get a copy of this message | ||
rasmus Thu Sep 9 12:21:50 2004 EDT
Modified files: (Branch: PHP_5_0)
/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.81.2.1&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.81.2.1
--- 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:21:49 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.81.2.1 2004/09/09 16:21:49 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;
}