xref: /PHP-7.0/Zend/tests/nowdoc_009.phpt (revision ddcf7a2f)
1--TEST--
2Torture the T_END_NOWDOC rules (nowdoc)
3--FILE--
4<?php
5
6require_once 'nowdoc.inc';
7
8print <<<'ENDOFNOWDOC'
9ENDOFNOWDOC    ;
10    ENDOFNOWDOC;
11ENDOFNOWDOC
12    ENDOFNOWDOC
13$ENDOFNOWDOC;
14
15ENDOFNOWDOC;
16
17$x = <<<'ENDOFNOWDOC'
18ENDOFNOWDOC    ;
19    ENDOFNOWDOC;
20ENDOFNOWDOC
21    ENDOFNOWDOC
22$ENDOFNOWDOC;
23
24ENDOFNOWDOC;
25
26print "{$x}";
27
28?>
29--EXPECT--
30ENDOFNOWDOC    ;
31    ENDOFNOWDOC;
32ENDOFNOWDOC
33    ENDOFNOWDOC
34$ENDOFNOWDOC;
35ENDOFNOWDOC    ;
36    ENDOFNOWDOC;
37ENDOFNOWDOC
38    ENDOFNOWDOC
39$ENDOFNOWDOC;
40
41