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