summaryrefslogtreecommitdiff
path: root/Zend/tests/bug31341.phpt
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2005-10-21 13:22:05 +0000
committerDmitry Stogov <dmitry@php.net>2005-10-21 13:22:05 +0000
commit187b6cc583cae370ab17f68e642b8272068a706c (patch)
tree2637326a210c82b30cd52177af8899f3ba6dc231 /Zend/tests/bug31341.phpt
parentaf0adbed3963cdee1bfaf5e3a74b029d2b92c8b7 (diff)
downloadphp-git-187b6cc583cae370ab17f68e642b8272068a706c.tar.gz
Fixed bug #31341 (escape on curly inconsistent)
Diffstat (limited to 'Zend/tests/bug31341.phpt')
-rwxr-xr-xZend/tests/bug31341.phpt29
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--
+'$ \{ '
+' \{ $'
+' {$ '
+' $\{ '
+' $\{ '
+' \{$ '
+'$ \{ '
+' \{ $'
+'% \{ '