mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
30 lines
418 B
PHP
30 lines
418 B
PHP
--TEST--
|
|
Bug #31341 (escape on curly inconsistent)
|
|
--FILE--
|
|
<?php
|
|
$a = array(
|
|
"$ \{ ",
|
|
" \{ $",
|
|
" \{$ ",
|
|
" $\{ ",
|
|
" \$\{ ",
|
|
" \{\$ ",
|
|
"\$ \{ ",
|
|
" \{ \$",
|
|
"% \{ ");
|
|
|
|
foreach ($a as $v) {
|
|
echo("'$v'\n");
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
'$ \{ '
|
|
' \{ $'
|
|
' \{$ '
|
|
' $\{ '
|
|
' $\{ '
|
|
' \{$ '
|
|
'$ \{ '
|
|
' \{ $'
|
|
'% \{ '
|