summaryrefslogtreecommitdiff
path: root/tests/basic/019.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/019.phpt
parent0a36161e13484a99ccf69bb38f206462d27cc6d6 (diff)
downloadphp-upstream/5.1.5.tar.gz
Imported Upstream version 5.1.5upstream/5.1.5
Diffstat (limited to 'tests/basic/019.phpt')
-rw-r--r--tests/basic/019.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/basic/019.phpt b/tests/basic/019.phpt
new file mode 100644
index 000000000..467d4e6bf
--- /dev/null
+++ b/tests/basic/019.phpt
@@ -0,0 +1,19 @@
+--TEST--
+POST Method test and arrays - 7
+--SKIPIF--
+<?php if (php_sapi_name()=='cli') echo 'skip'; ?>
+--POST--
+a[]=1&a[]]=3&a[[]=4
+--FILE--
+<?php
+var_dump($_POST['a']);
+?>
+--EXPECT--
+array(3) {
+ [0]=>
+ string(1) "1"
+ [1]=>
+ string(1) "3"
+ ["["]=>
+ string(1) "4"
+}