mirror of
https://github.com/php/php-src.git
synced 2024-12-19 06:50:17 +08:00
23 lines
362 B
PHP
23 lines
362 B
PHP
--TEST--
|
|
unbraced complex variable replacement test (heredoc)
|
|
--FILE--
|
|
<?php
|
|
|
|
require_once 'nowdoc.inc';
|
|
|
|
print <<<ENDOFHEREDOC
|
|
This is heredoc test #s $a, $b, $c['c'], and $d->d.
|
|
|
|
ENDOFHEREDOC;
|
|
|
|
$x = <<<ENDOFHEREDOC
|
|
This is heredoc test #s $a, $b, $c['c'], and $d->d.
|
|
|
|
ENDOFHEREDOC;
|
|
|
|
print "{$x}";
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Parse error: %s in %sheredoc_005.php on line 6
|