]> granicus.if.org Git - php/commitdiff
I'm on a roll. Fix a nasty yet stupid AiCount bug
authorZeev Suraski <zeev@php.net>
Sat, 22 May 1999 17:30:09 +0000 (17:30 +0000)
committerZeev Suraski <zeev@php.net>
Sat, 22 May 1999 17:30:09 +0000 (17:30 +0000)
Zend/zend-parser.y

index 2e285ff734e7548cb522ef92ee7328432bceb7bf..838382a14d4e5f47dbf603005af1d4084c6f8352 100644 (file)
@@ -356,7 +356,7 @@ echo_expr_list:
 
 for_expr:
                /* empty */                     { $$.op_type = IS_CONST;  $$.u.constant.type = IS_BOOL;  $$.u.constant.value.lval = 1; }
-       |       for_expr ',' expr       { $$ = $3; }
+       |       for_expr ',' { do_free(&$1 CLS_CC); } expr      { $$ = $4; }
        |       expr                            { $$ = $1; }
 ;