summaryrefslogtreecommitdiff
path: root/Zend/tests/bug31341.phpt
blob: 289e03a0baf7c390742840f465cea76b9c331fda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--TEST--
Bug #31341 (escape on curly inconsistent)
--FILE--
<?php
$a = array(
    "$     \{    ",
    "      \{   $",
    "      \{$   ",
    "      $\{   ",
    "      \$\{  ",
    "      \{\$  ",
    "\$    \{    ",
    "      \{  \$",
    "%     \{    ");

foreach ($a as $v) {
    echo("'$v'\n");
}
?>
--EXPECT--
'$     \{    '
'      \{   $'
'      \{$   '
'      $\{   '
'      $\{  '
'      \{$  '
'$    \{    '
'      \{  $'
'%     \{    '