summaryrefslogtreecommitdiff
path: root/tests/php/phpt/variables/024-get-post.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/php/phpt/variables/024-get-post.phpt')
-rw-r--r--tests/php/phpt/variables/024-get-post.phpt26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/php/phpt/variables/024-get-post.phpt b/tests/php/phpt/variables/024-get-post.phpt
new file mode 100644
index 0000000..9ac1243
--- /dev/null
+++ b/tests/php/phpt/variables/024-get-post.phpt
@@ -0,0 +1,26 @@
+--TEST--
+test get and post
+--SKIPIF--
+<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
+--GET--
+a=<b>test</b>&b=http://phpcpp.com&ar[elm1]=1234&ar[elm2]=0660&a=0234
+--POST--
+c=<p>string</p>&d=12345.7&e[]=e1&e[]=e2
+--FILEEOF--
+<?php
+
+
+TestVariables\get_post();
+
+--EXPECTF--
+_GET[a] = 0234
+_GET[b] = http://phpcpp.com
+_GET[ar][elm1] = 1234
+_GET[ar][elm2] = 0660
+_POST[c] = <p>string</p>
+_POST[d] = 12345.7
+
+Notice: Array to string conversion in %s/024-get-post.php on line %d
+_POST[e] = Array
+_POST[e][0] = e1
+_POST[e][1] = e2 \ No newline at end of file