lbarnaud                Wed Sep 10 14:12:55 2008 UTC

  Modified files:              
    /php-src/main       php_variables.c 
  Log:
  Fix php_u_register_variable_ex(), avoid readding some uninitialized data
  after the end of the variable name
  
  
http://cvs.php.net/viewvc.cgi/php-src/main/php_variables.c?r1=1.149&r2=1.150&diff_format=u
Index: php-src/main/php_variables.c
diff -u php-src/main/php_variables.c:1.149 php-src/main/php_variables.c:1.150
--- php-src/main/php_variables.c:1.149  Sat Aug 30 18:28:48 2008
+++ php-src/main/php_variables.c        Wed Sep 10 14:12:55 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_variables.c,v 1.149 2008/08/30 18:28:48 rasmus Exp $ */
+/* $Id: php_variables.c,v 1.150 2008/09/10 14:12:55 lbarnaud Exp $ */
 
 #include <stdio.h>
 #include "php.h"
@@ -361,7 +361,7 @@
                                is_array = 1;
                                *ip = 0;
                        } else {
-                               is_array = 0;
+                               goto plain_var;
                        }
                }
        } else {



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to