Annotation of embedaddon/php/Zend/tests/bug47516.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #47516 (nowdoc can not be embed in heredoc but can be embed in double quote)
3: --FILE--
4: <?php
5: $s='substr';
6:
7: $htm=<<<DOC
8: {$s(<<<'ppp'
9: abcdefg
10: ppp
11: ,0,3)}
12: DOC;
13:
14: echo "$htm\n";
15:
16: $htm=<<<DOC
17: {$s(<<<ppp
18: abcdefg
19: ppp
20: ,0,3)}
21: DOC;
22:
23: echo "$htm\n";
24:
25: $htm="{$s(<<<'ppp'
26: abcdefg
27: ppp
28: ,0,3)}
29: ";
30:
31: echo "$htm\n";
32: ?>
33: --EXPECT--
34: abc
35: abc
36: abc
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>