]> granicus.if.org Git - php/commitdiff
Fix php_u_register_variable_ex(), avoid readding some uninitialized data
authorArnaud Le Blanc <lbarnaud@php.net>
Wed, 10 Sep 2008 14:12:55 +0000 (14:12 +0000)
committerArnaud Le Blanc <lbarnaud@php.net>
Wed, 10 Sep 2008 14:12:55 +0000 (14:12 +0000)
after the end of the variable name

main/php_variables.c

index 467ee200d91f1bcdfc67abed399aec17c8250b71..bffcc78eddb1930c46b967e10fbe461bcc06fbea 100644 (file)
@@ -361,7 +361,7 @@ PHPAPI void php_u_register_variable_ex(UChar *var, zval *val, zval *track_vars_a
                                is_array = 1;
                                *ip = 0;
                        } else {
-                               is_array = 0;
+                               goto plain_var;
                        }
                }
        } else {