mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +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
|