Skip to content

Commit 7df50ef

Browse files
committed
Don't throw warnings during heredoc scan-ahead
Otherwise these warnings will turn up twice (or more...)
1 parent 66c48e8 commit 7df50ef

4 files changed

+207
-181
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--TEST--
2+
No warnings should be thrown during heredoc scan-ahead
3+
--FILE--
4+
<?php
5+
6+
<<<TEST
7+
${x}
8+
\400
9+
${/*}
10+
TEST;
11+
12+
?>
13+
--EXPECTF--
14+
Warning: Unexpected character in input: '' (ASCII=1) state=0 in %s on line %d
15+
16+
Warning: Octal escape sequence overflow \400 is greater than \377 in %s on line %d
17+
18+
Warning: Unterminated comment starting line %d in %s on line %d
19+
20+
Parse error: syntax error, unexpected end of file in %s on line %d

0 commit comments

Comments
 (0)