php-src/tests/basic/enable_post_data_reading_02.phpt
Michael Wallner 832e2d0d8c tests
2013-09-10 13:14:02 +02:00

36 lines
1.0 KiB
PHP

--TEST--
enable_post_data_reading: rfc1867
--INI--
enable_post_data_reading=0
--POST_RAW--
Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
-----------------------------20896060251896012921717172737
Content-Disposition: form-data; name="file1"; filename="file1.txt"
Content-Type: text/plain-file
1
-----------------------------20896060251896012921717172737--
--FILE--
<?php
var_dump($_FILES);
var_dump($_POST);
var_dump(file_get_contents("php://input"));
var_dump(file_get_contents("php://input"));
--EXPECTF--
array(0) {
}
array(0) {
}
string(%d) "-----------------------------20896060251896012921717172737
Content-Disposition: form-data; name="file1"; filename="file1.txt"
Content-Type: text/plain-file
1
-----------------------------20896060251896012921717172737--"
string(%d) "-----------------------------20896060251896012921717172737
Content-Disposition: form-data; name="file1"; filename="file1.txt"
Content-Type: text/plain-file
1
-----------------------------20896060251896012921717172737--"