mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
16 lines
302 B
PHP
16 lines
302 B
PHP
--TEST--
|
|
Bug #76439: Don't always strip leading whitespace from heredoc T_ENCAPSED_AND_WHITESPACE tokens (error case)
|
|
--FILE--
|
|
<?php
|
|
|
|
$foo = 1;
|
|
|
|
var_dump(<<<BAR
|
|
$foo
|
|
$foo
|
|
BAR);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Parse error: Invalid body indentation level (expecting an indentation level of at least 1) in %s on line 7
|