mirror of
https://github.com/php/php-src.git
synced 2024-10-17 14:32:37 +00:00
37 lines
333 B
Plaintext
37 lines
333 B
Plaintext
|
--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
|