php-src/Zend/tests/heredoc_009.phpt
2008-02-12 09:28:30 +00:00

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
;