summaryrefslogtreecommitdiff
path: root/tests/basic/020.phpt
diff options
context:
space:
mode:
authorMark A. Hershberger <mah@debian.(none)>2009-03-25 00:35:28 -0400
committerMark A. Hershberger <mah@debian.(none)>2009-03-25 00:35:28 -0400
commitba50031707469046407a35b77a3cd81351e951b3 (patch)
tree5c03e723bdbfabae09d41a3ab1253dff41eeed4a /tests/basic/020.phpt
parent0a36161e13484a99ccf69bb38f206462d27cc6d6 (diff)
downloadphp-upstream/5.1.5.tar.gz
Imported Upstream version 5.1.5upstream/5.1.5
Diffstat (limited to 'tests/basic/020.phpt')
-rw-r--r--tests/basic/020.phpt17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/basic/020.phpt b/tests/basic/020.phpt
new file mode 100644
index 000000000..0d4704e7f
--- /dev/null
+++ b/tests/basic/020.phpt
@@ -0,0 +1,17 @@
+--TEST--
+POST Method test and arrays - 8
+--SKIPIF--
+<?php if (php_sapi_name()=='cli') echo 'skip'; ?>
+--POST--
+a[a[]]=1&a[b[]]=3
+--FILE--
+<?php
+var_dump($_POST['a']);
+?>
+--EXPECT--
+array(2) {
+ ["a["]=>
+ string(1) "1"
+ ["b["]=>
+ string(1) "3"
+}