diff options
author | Dmitry Stogov <dmitry@php.net> | 2005-10-21 13:22:05 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2005-10-21 13:22:05 +0000 |
commit | 187b6cc583cae370ab17f68e642b8272068a706c (patch) | |
tree | 2637326a210c82b30cd52177af8899f3ba6dc231 /Zend/tests/bug31341.phpt | |
parent | af0adbed3963cdee1bfaf5e3a74b029d2b92c8b7 (diff) | |
download | php-git-187b6cc583cae370ab17f68e642b8272068a706c.tar.gz |
Fixed bug #31341 (escape on curly inconsistent)
Diffstat (limited to 'Zend/tests/bug31341.phpt')
-rwxr-xr-x | Zend/tests/bug31341.phpt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Zend/tests/bug31341.phpt b/Zend/tests/bug31341.phpt new file mode 100755 index 0000000000..2f68006a07 --- /dev/null +++ b/Zend/tests/bug31341.phpt @@ -0,0 +1,29 @@ +--TEST-- +Bug #31341 (escape on curly inconsistent) +--FILE-- +<?php +$a = array( + "$ \{ ", + " \{ $", + " \{$ ", + " $\{ ", + " \$\{ ", + " \{\$ ", + "\$ \{ ", + " \{ \$", + "% \{ "); + +foreach ($a as $v) { + echo("'$v'\n"); +} +?> +--EXPECT-- +'$ \{ ' +' \{ $' +' {$ ' +' $\{ ' +' $\{ ' +' \{$ ' +'$ \{ ' +' \{ $' +'% \{ ' |