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