mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
497fae9d1f
Fixed bug #35382 (Comment in end of file produces fatal error).
20 lines
268 B
PHP
Executable File
20 lines
268 B
PHP
Executable File
--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
|