xref: /PHP-8.2/Zend/tests/bug35411.phpt (revision 610c7fbe)
1--TEST--
2Bug #35411 (Regression with \{$ handling)
3--FILE--
4<?php
5$abc = "bar";
6echo "foo\{$abc}baz\n";
7echo "foo\{ $abc}baz\n";
8echo <<<TEST
9foo{$abc}baz
10foo\{$abc}baz
11foo\{ $abc}baz
12TEST;
13?>
14--EXPECT--
15foo\{bar}baz
16foo\{ bar}baz
17foobarbaz
18foo\{bar}baz
19foo\{ bar}baz
20