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