mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
41 lines
518 B
PHP
41 lines
518 B
PHP
--TEST--
|
|
Torture the T_END_NOWDOC rules (nowdoc)
|
|
--FILE--
|
|
<?php
|
|
|
|
require_once 'nowdoc.inc';
|
|
|
|
print <<<'ENDOFNOWDOC'
|
|
ENDOFNOWDOC ;
|
|
ENDOFNOWDOC;
|
|
ENDOFNOWDOC
|
|
ENDOFNOWDOC
|
|
$ENDOFNOWDOC;
|
|
|
|
ENDOFNOWDOC;
|
|
|
|
$x = <<<'ENDOFNOWDOC'
|
|
ENDOFNOWDOC ;
|
|
ENDOFNOWDOC;
|
|
ENDOFNOWDOC
|
|
ENDOFNOWDOC
|
|
$ENDOFNOWDOC;
|
|
|
|
ENDOFNOWDOC;
|
|
|
|
print "{$x}";
|
|
|
|
?>
|
|
--EXPECT--
|
|
ENDOFNOWDOC ;
|
|
ENDOFNOWDOC;
|
|
ENDOFNOWDOC
|
|
ENDOFNOWDOC
|
|
$ENDOFNOWDOC;
|
|
ENDOFNOWDOC ;
|
|
ENDOFNOWDOC;
|
|
ENDOFNOWDOC
|
|
ENDOFNOWDOC
|
|
$ENDOFNOWDOC;
|
|
|