diff options
Diffstat (limited to 'tests/basic/031.phpt')
-rw-r--r-- | tests/basic/031.phpt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/basic/031.phpt b/tests/basic/031.phpt new file mode 100644 index 0000000..12b8354 --- /dev/null +++ b/tests/basic/031.phpt @@ -0,0 +1,32 @@ +--TEST-- +Bug#55504 (Content-Type header is not parsed correctly on HTTP POST request) +--INI-- +file_uploads=1 +--POST_RAW-- +Content-Type: multipart/form-data; boundary=BVoyv; charset=iso-8859-1 +--BVoyv +Content-Disposition: form-data; name="data" + +abc +--BVoyv +Content-Disposition: form-data; name="data2" + +more data +--BVoyv +Content-Disposition: form-data; name="data3" + +even more data +--BVoyv-- +--FILE-- +<?php +var_dump($_POST); +?> +--EXPECT-- +array(3) { + ["data"]=> + string(3) "abc" + ["data2"]=> + string(9) "more data" + ["data3"]=> + string(14) "even more data" +} |