-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
list_is_keyed() did not take into account that there may be AST_UNPACK elements. These would error lateron anyway, but still produce an invalid access here.
- Loading branch information
Showing
2 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--TEST-- | ||
Spread operator is not supported in destructuring assignments (only spread) | ||
--FILE-- | ||
<?php | ||
|
||
[...$x] = [1, 2, 3]; | ||
|
||
?> | ||
--EXPECTF-- | ||
Fatal error: Spread operator is not supported in assignments in %s on line %d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters