mirror of
https://github.com/php/php-src.git
synced 2024-12-01 05:43:38 +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--
|
|
'$ \{ '
|
|
' \{ $'
|
|
' \{$ '
|
|
' $\{ '
|
|
' $\{ '
|
|
' \{$ '
|
|
'$ \{ '
|
|
' \{ $'
|
|
'% \{ '
|