xref: /PHP-5.6/sapi/tests/test007.phpt (revision d94136fc)
1--TEST--
2Multipart Form POST Data, incorrect content length
3--HEADERS--
4return <<<END
5Content-Type=multipart/form-data; boundary=---------------------------240723202011929
6Content-Length=100
7END;
8--POST--
9-----------------------------240723202011929
10Content-Disposition: form-data; name="entry"
11
12entry box
13-----------------------------240723202011929
14Content-Disposition: form-data; name="password"
15
16password box
17-----------------------------240723202011929
18Content-Disposition: form-data; name="radio1"
19
20test 1
21-----------------------------240723202011929
22Content-Disposition: form-data; name="checkbox1"
23
24test 1
25-----------------------------240723202011929
26Content-Disposition: form-data; name="choices"
27
28Choice 1
29-----------------------------240723202011929
30Content-Disposition: form-data; name="choices"
31
32Choice 2
33-----------------------------240723202011929
34Content-Disposition: form-data; name="file"; filename="info.php"
35Content-Type: application/octet-stream
36
37<?php
38phpinfo();
39?>
40-----------------------------240723202011929--
41
42--FILE--
43<?php
44print @$_POST['choices'];
45?>
46--EXPECT--
47