1--TEST--
2rfc1867 post_max_filesize
3--INI--
4file_uploads=1
5upload_max_filesize=1
6max_file_uploads=10
7--POST_RAW--
8Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
9-----------------------------20896060251896012921717172737
10Content-Disposition: form-data; name="file1"; filename="file1.txt"
11Content-Type: text/plain-file1
12
131
14-----------------------------20896060251896012921717172737
15Content-Disposition: form-data; name="file2"; filename="file2.txt"
16Content-Type: text/plain-file2
17
1822
19-----------------------------20896060251896012921717172737
20Content-Disposition: form-data; name="file3"; filename="file3.txt"
21Content-Type: text/plain-file3
22
233
24-----------------------------20896060251896012921717172737--
25--FILE--
26<?php
27var_dump($_FILES);
28var_dump($_POST);
29if (is_uploaded_file($_FILES["file1"]["tmp_name"])) {
30    var_dump(file_get_contents($_FILES["file1"]["tmp_name"]));
31}
32if (is_uploaded_file($_FILES["file3"]["tmp_name"])) {
33    var_dump(file_get_contents($_FILES["file3"]["tmp_name"]));
34}
35?>
36--EXPECTF--
37array(3) {
38  ["file1"]=>
39  array(6) {
40    ["name"]=>
41    string(9) "file1.txt"
42    ["full_path"]=>
43    string(9) "file1.txt"
44    ["type"]=>
45    string(16) "text/plain-file1"
46    ["tmp_name"]=>
47    string(%d) "%s"
48    ["error"]=>
49    int(0)
50    ["size"]=>
51    int(1)
52  }
53  ["file2"]=>
54  array(6) {
55    ["name"]=>
56    string(9) "file2.txt"
57    ["full_path"]=>
58    string(9) "file2.txt"
59    ["type"]=>
60    string(0) ""
61    ["tmp_name"]=>
62    string(0) ""
63    ["error"]=>
64    int(1)
65    ["size"]=>
66    int(0)
67  }
68  ["file3"]=>
69  array(6) {
70    ["name"]=>
71    string(9) "file3.txt"
72    ["full_path"]=>
73    string(9) "file3.txt"
74    ["type"]=>
75    string(16) "text/plain-file3"
76    ["tmp_name"]=>
77    string(%d) "%s"
78    ["error"]=>
79    int(0)
80    ["size"]=>
81    int(1)
82  }
83}
84array(0) {
85}
86string(1) "1"
87string(1) "3"
88