mirror of
https://github.com/php/php-src.git
synced 2024-12-17 13:59:28 +08:00
39 lines
660 B
PHP
39 lines
660 B
PHP
--TEST--
|
|
Flexible heredoc syntax complex test 4: interpolated variable with
|
|
the same delimiter name as the heredoc
|
|
--FILE--
|
|
<?php
|
|
|
|
{
|
|
$FOO = "FOO";
|
|
define("FOO", "FOO");
|
|
$b = <<<FOO
|
|
Test
|
|
${
|
|
FOO
|
|
}
|
|
FOO;
|
|
var_dump($b);
|
|
}
|
|
|
|
{
|
|
$FOO = "FOO";
|
|
$b = <<<FOO
|
|
Test
|
|
${
|
|
FOO
|
|
}
|
|
FOO;
|
|
var_dump($b);
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: Using ${expr} (variable variables) in strings is deprecated, use {${expr}} instead in %s on line %d
|
|
|
|
Deprecated: Using ${expr} (variable variables) in strings is deprecated, use {${expr}} instead in %s on line %d
|
|
string(8) "Test
|
|
FOO"
|
|
string(16) " Test
|
|
FOO"
|