mirror of
https://github.com/php/php-src.git
synced 2024-12-12 03:15:29 +08:00
43 lines
631 B
PHP
43 lines
631 B
PHP
--TEST--
|
|
Torture the T_END_HEREDOC rules (heredoc)
|
|
--FILE--
|
|
<?php
|
|
|
|
require_once 'nowdoc.inc';
|
|
|
|
print <<<ENDOFHEREDOC
|
|
ENDOFHEREDOC ;
|
|
ENDOFHEREDOC;
|
|
ENDOFHEREDOC
|
|
ENDOFHEREDOC
|
|
$ENDOFHEREDOC;
|
|
|
|
ENDOFHEREDOC;
|
|
|
|
$x = <<<ENDOFHEREDOC
|
|
ENDOFHEREDOC ;
|
|
ENDOFHEREDOC;
|
|
ENDOFHEREDOC
|
|
ENDOFHEREDOC
|
|
$ENDOFHEREDOC;
|
|
|
|
ENDOFHEREDOC;
|
|
|
|
print "{$x}";
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Notice: Undefined variable: ENDOFHEREDOC in %s on line %d
|
|
ENDOFHEREDOC ;
|
|
ENDOFHEREDOC;
|
|
ENDOFHEREDOC
|
|
ENDOFHEREDOC
|
|
;
|
|
|
|
Notice: Undefined variable: ENDOFHEREDOC in %s on line %d
|
|
ENDOFHEREDOC ;
|
|
ENDOFHEREDOC;
|
|
ENDOFHEREDOC
|
|
ENDOFHEREDOC
|
|
;
|