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