summaryrefslogtreecommitdiff
path: root/Zend/tests/bug47516.phpt
blob: a9a20710d307f5a2a09e082a16d17f29a4190bc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--TEST--
Bug #47516 (nowdoc can not be embed in heredoc but can be embed in double quote)
--FILE--
<?php
$s='substr';

$htm=<<<DOC
{$s(<<<'ppp'
abcdefg
ppp
,0,3)}
DOC;

echo "$htm\n";

$htm=<<<DOC
{$s(<<<ppp
abcdefg
ppp
,0,3)}
DOC;

echo "$htm\n";

$htm="{$s(<<<'ppp'
abcdefg
ppp
,0,3)}
";

echo "$htm\n";
?>
--EXPECT--
abc
abc
abc