mirror of
https://github.com/php/php-src.git
synced 2025-01-05 18:33:56 +08:00
41 lines
518 B
Plaintext
41 lines
518 B
Plaintext
|
--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;
|
||
|
|