mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
497fae9d1f
Fixed bug #35382 (Comment in end of file produces fatal error).
30 lines
418 B
PHP
Executable File
30 lines
418 B
PHP
Executable File
--TEST--
|
|
Bug #31341 (escape on curly inconsistent)
|
|
--FILE--
|
|
<?php
|
|
$a = array(
|
|
"$ \{ ",
|
|
" \{ $",
|
|
" \{$ ",
|
|
" $\{ ",
|
|
" \$\{ ",
|
|
" \{\$ ",
|
|
"\$ \{ ",
|
|
" \{ \$",
|
|
"% \{ ");
|
|
|
|
foreach ($a as $v) {
|
|
echo("'$v'\n");
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
'$ \{ '
|
|
' \{ $'
|
|
' \{$ '
|
|
' $\{ '
|
|
' $\{ '
|
|
' \{$ '
|
|
'$ \{ '
|
|
' \{ $'
|
|
'% \{ '
|