xref: /PHP-8.0/Zend/tests/bug31341.phpt (revision f8d79582)
1--TEST--
2Bug #31341 (escape on curly inconsistent)
3--FILE--
4<?php
5$a = array(
6    "$     \{    ",
7    "      \{   $",
8    "      \{$   ",
9    "      $\{   ",
10    "      \$\{  ",
11    "      \{\$  ",
12    "\$    \{    ",
13    "      \{  \$",
14    "%     \{    ");
15
16foreach ($a as $v) {
17    echo("'$v'\n");
18}
19?>
20--EXPECT--
21'$     \{    '
22'      \{   $'
23'      \{$   '
24'      $\{   '
25'      $\{  '
26'      \{$  '
27'$    \{    '
28'      \{  $'
29'%     \{    '
30