Skip to content

Commit e8d36ce

Browse files
committed
Avoid duplicate octal warning during heredoc scan ahead
1 parent 46a49be commit e8d36ce

File tree

3 files changed

+353
-352
lines changed

3 files changed

+353
-352
lines changed

Zend/tests/warning_during_heredoc_scan_ahead.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ No warnings should be thrown during heredoc scan-ahead
66
<<<TEST
77
${x}
88
\400
9+
${"\400"}
910
${/*}
1011
TEST;
1112

@@ -15,6 +16,8 @@ Warning: Unexpected character in input: '' (ASCII=1) state=0 in %s on line %d
1516

1617
Warning: Octal escape sequence overflow \400 is greater than \377 in %s on line %d
1718

19+
Warning: Octal escape sequence overflow \400 is greater than \377 in %s on line %d
20+
1821
Warning: Unterminated comment starting line %d in %s on line %d
1922

2023
Parse error: syntax error, unexpected end of file in %s on line %d

0 commit comments

Comments
 (0)