mirror of
https://github.com/php/php-src.git
synced 2024-12-14 04:16:30 +08:00
20 lines
268 B
PHP
20 lines
268 B
PHP
--TEST--
|
|
Bug #35411 (Regression with \{$ handling)
|
|
--FILE--
|
|
<?php
|
|
$abc = "bar";
|
|
echo "foo\{$abc}baz\n";
|
|
echo "foo\{ $abc}baz\n";
|
|
echo <<<TEST
|
|
foo{$abc}baz
|
|
foo\{$abc}baz
|
|
foo\{ $abc}baz
|
|
TEST;
|
|
?>
|
|
--EXPECT--
|
|
foo\{bar}baz
|
|
foo\{ bar}baz
|
|
foobarbaz
|
|
foo\{bar}baz
|
|
foo\{ bar}baz
|