Download src/php/php-src/Zend/tests/grammar/bug31341.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 448 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/grammar/bug31341.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/grammar/bug31341.phpt
-
curl -L -o bug31341.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/grammar/bug31341.phpt
448 Bytes
| --TEST-- | |
| Bug #31341 (escape on curly inconsistent) | |
| --FILE-- | |
| $a = array( | |
| "$ \{ ", | |
| " \{ $", | |
| " \{$ ", | |
| " $\{ ", | |
| " \$\{ ", | |
| " \{\$ ", | |
| "\$ \{ ", | |
| " \{ \$", | |
| "% \{ "); | |
| foreach ($a as $v) { | |
| echo("'$v'\n"); | |
| } | |
| --EXPECT-- | |
| '$ \{ ' | |
| ' \{ $' | |
| ' \{$ ' | |
| ' $\{ ' | |
| ' $\{ ' | |
| ' \{$ ' | |
| '$ \{ ' | |
| ' \{ $' | |
| '% \{ ' | |