xref: /PHP-8.2/Zend/tests/heredoc_005.phpt (revision 5f68027d)
1--TEST--
2unbraced complex variable replacement test (heredoc)
3--FILE--
4<?php
5
6require_once 'nowdoc.inc';
7
8print <<<ENDOFHEREDOC
9This is heredoc test #s $a, $b, $c['c'], and $d->d.
10
11ENDOFHEREDOC;
12
13$x = <<<ENDOFHEREDOC
14This is heredoc test #s $a, $b, $c['c'], and $d->d.
15
16ENDOFHEREDOC;
17
18print "{$x}";
19
20?>
21--EXPECTF--
22Parse error: %s in %sheredoc_005.php on line 6
23