xref: /PHP-8.2/tests/basic/021.phpt (revision d764f1dc)
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(6) {
28    ["name"]=>
29    string(12) "bug37276.txt"
30    ["full_path"]=>
31    string(12) "bug37276.txt"
32    ["type"]=>
33    string(10) "text/plain"
34    ["tmp_name"]=>
35    string(%d) "%s"
36    ["error"]=>
37    int(0)
38    ["size"]=>
39    int(9)
40  }
41}
42array(1) {
43  ["submitter"]=>
44  string(8) "testname"
45}
46