xref: /PHP-8.0/tests/basic/021.phpt (revision 4fa17430)
1--TEST--
2Bug #37276 (problems witch $_POST array)
3--INI--
4file_uploads=1
5upload_tmp_dir=.
6--POST_RAW--
7Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
8-----------------------------20896060251896012921717172737
9Content-Disposition: form-data; name="submitter"
10
11testname
12-----------------------------20896060251896012921717172737
13Content-Disposition: form-data; name="pics"; filename="bug37276.txt"
14Content-Type: text/plain
15
16bug37276
17
18-----------------------------20896060251896012921717172737--
19--FILE--
20<?php
21var_dump($_FILES);
22var_dump($_POST);
23?>
24--EXPECTF--
25array(1) {
26  ["pics"]=>
27  array(5) {
28    ["name"]=>
29    string(12) "bug37276.txt"
30    ["type"]=>
31    string(10) "text/plain"
32    ["tmp_name"]=>
33    string(%d) "%s"
34    ["error"]=>
35    int(0)
36    ["size"]=>
37    int(9)
38  }
39}
40array(1) {
41  ["submitter"]=>
42  string(8) "testname"
43}
44