xref: /PHP-7.3/Zend/tests/bug76439_2.phpt (revision 17afe643)
1--TEST--
2Bug #76439: Don't always strip leading whitespace from heredoc T_ENCAPSED_AND_WHITESPACE tokens (error case)
3--FILE--
4<?php
5
6$foo = 1;
7
8var_dump(<<<BAR
9 $foo
10$foo
11 BAR);
12
13?>
14--EXPECTF--
15Parse error: Invalid body indentation level (expecting an indentation level of at least 1) in %s on line 7
16