Skip to content

Commit 13f7321

Browse files
committed
Forbid "=& new" in PHP 7 mode
1 parent 81f7da3 commit 13f7321

File tree

4 files changed

+521
-502
lines changed

4 files changed

+521
-502
lines changed

grammar/php7.y

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,6 @@ expr:
512512
| list_expr '=' expr { $$ = Expr\Assign[$1, $3]; }
513513
| variable '=' expr { $$ = Expr\Assign[$1, $3]; }
514514
| variable '=' '&' variable { $$ = Expr\AssignRef[$1, $4]; }
515-
| variable '=' '&' new_expr { $$ = Expr\AssignRef[$1, $4]; }
516515
| new_expr { $$ = $1; }
517516
| T_CLONE expr { $$ = Expr\Clone_[$2]; }
518517
| variable T_PLUS_EQUAL expr { $$ = Expr\AssignOp\Plus [$1, $3]; }

0 commit comments

Comments
 (0)