cvs: pear-core /tests/PEAR_RunTest test_bug10092post_raw1.phpt

From: Date: Sat, 17 Feb 2007 18:10:40 +0000
Subject: cvs: pear-core /tests/PEAR_RunTest test_bug10092post_raw1.phpt
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-5438@lists.php.net to get a copy of this message
cellog Sat Feb 17 18:10:40 2007 UTC Added files: /pear-core/tests/PEAR_RunTest test_bug10092post_raw1.phpt Log: new test for POST_RAW http://cvs.php.net/viewvc.cgi/pear-core/tests/PEAR_RunTest/test_bug10092post_raw1.phpt?view=markup&rev=1.1 Index: pear-core/tests/PEAR_RunTest/test_bug10092post_raw1.phpt +++ pear-core/tests/PEAR_RunTest/test_bug10092post_raw1.phpt --TEST-- PEAR_RunTest --POST_RAW-- normal --SKIPIF-- <?php if (!getenv('PHP_PEAR_RUNTESTS')) { echo 'skip'; } ?> --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-- <?php var_dump($_FILES); var_dump($_POST); $fp = fopen('php://input', 'r'); $a = fread($fp, 8192); fclose($fp); var_dump($a); ?> --EXPECTF-- array(1) { ["pics"]=> array(5) { ["name"]=> string(12) "bug37276.txt" ["type"]=> string(10) "text/plain" ["tmp_name"]=> string(%d) "%s" ["error"]=> int(0) ["size"]=> int(9) } } array(1) { ["submitter"]=> string(8) "testname" } string(0) ""

« previous php.pear.core (#5438) next »