Return to 031.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / basic |
1.1 ! misho 1: --TEST-- ! 2: Bug#55504 (Content-Type header is not parsed correctly on HTTP POST request) ! 3: --INI-- ! 4: file_uploads=1 ! 5: --POST_RAW-- ! 6: Content-Type: multipart/form-data; boundary=BVoyv; charset=iso-8859-1 ! 7: --BVoyv ! 8: Content-Disposition: form-data; name="data" ! 9: ! 10: abc ! 11: --BVoyv ! 12: Content-Disposition: form-data; name="data2" ! 13: ! 14: more data ! 15: --BVoyv ! 16: Content-Disposition: form-data; name="data3" ! 17: ! 18: even more data ! 19: --BVoyv-- ! 20: --FILE-- ! 21: <?php ! 22: var_dump($_POST); ! 23: ?> ! 24: --EXPECT-- ! 25: array(3) { ! 26: ["data"]=> ! 27: string(3) "abc" ! 28: ["data2"]=> ! 29: string(9) "more data" ! 30: ["data3"]=> ! 31: string(14) "even more data" ! 32: }