cvs: php-src(PHP_4_3) /main php_variables.c
| From: | Rasmus Lerdorf | Date: | Thu, 09 Sep 2004 16:07:54 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /main php_variables.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-28623@lists.php.net to get a copy of this message | ||
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 <zeev@zend.com> |
+----------------------------------------------------------------------+
*/
-/* $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;
}