summaryrefslogtreecommitdiff
path: root/tests/basic/020.phpt
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-05-03 19:02:12 +0000
committerAntony Dovgal <tony2001@php.net>2006-05-03 19:02:12 +0000
commit43db0fce03f9dd52e382e5414800de456c946ff5 (patch)
treed42b7c94ddbca6fa0f8644a09b0be22035eb130d /tests/basic/020.phpt
parentf03fe1c09d9938475effc5a7d25e4889569e0dca (diff)
downloadphp-git-43db0fce03f9dd52e382e5414800de456c946ff5.tar.gz
more POST+array tests
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 0000000000..0d4704e7f9
--- /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"
+}