From: Pierre Joye Date: Wed, 3 May 2006 21:35:26 +0000 (+0000) Subject: - add test for multipart POST X-Git-Tag: php-5.1.4~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=119266767927168210fc7c89aeba51d672752440;p=php - add test for multipart POST - also first example of the POST_RAW section --- diff --git a/tests/basic/021.phpt b/tests/basic/021.phpt new file mode 100644 index 0000000000..f0943f2a66 --- /dev/null +++ b/tests/basic/021.phpt @@ -0,0 +1,42 @@ +--TEST-- +Bug #37276 (problems witch $_POST array) +--SKIPIF-- + +--POST_RAW-- +Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737 +-----------------------------20896060251896012921717172737 +Content-Disposition: form-data; name="submitter" + +testname +-----------------------------20896060251896012921717172737 +Content-Disposition: form-data; name="pics"; filename="bug37276.txt" +Content-Type: text/plain + +bug37276 + +-----------------------------20896060251896012921717172737-- +--FILE-- + +--EXPECTF-- +array(1) { + ["pics"]=> + array(5) { + ["name"]=> + string(12) "bug37276.txt" + ["type"]=> + string(10) "text/plain" + ["tmp_name"]=> + string(14) "%s" + ["error"]=> + int(0) + ["size"]=> + int(9) + } +} +array(1) { + ["submitter"]=> + string(8) "testname" +}