Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mis-compilation of by-reference nullsafe operator
Fixes oss-fuzz #60011 Closes GH-11540 Co-authored-by: Dmitry Stogov <dmitry@zend.com> Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
- Loading branch information
1 parent
3483229
commit dc73b73
Showing
4 changed files
with
23 additions
and
0 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
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,8 @@ | ||
--TEST-- | ||
oss-fuzz #60011 (Incorrect order of instruction with nullsafe operator) | ||
--FILE-- | ||
<?php | ||
[&$y]=$y->y?->y; | ||
?> | ||
--EXPECTF-- | ||
Fatal error: Cannot take reference of a nullsafe chain 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--TEST-- | ||
oss-fuzz #60011 (Incorrect order of instruction with nullsafe operator) | ||
--FILE-- | ||
<?php | ||
[&$y]=$y?->y->y; | ||
?> | ||
--EXPECTF-- | ||
Fatal error: Cannot take reference of a nullsafe chain 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