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  [%u|b%"file1"]=>
39  array(5) {
40    [%u|b%"name"]=>
41    %string|unicode%(9) "file1.txt"
42    [%u|b%"type"]=>
43    %string|unicode%(16) "text/plain-file1"
44    [%u|b%"tmp_name"]=>
45    %string|unicode%(%d) "%s"
46    [%u|b%"error"]=>
47    int(0)
48    [%u|b%"size"]=>
49    int(1)
50  }
51  [%u|b%"file2"]=>
52  array(5) {
53    [%u|b%"name"]=>
54    %string|unicode%(9) "file2.txt"
55    [%u|b%"type"]=>
56    %string|unicode%(0) ""
57    [%u|b%"tmp_name"]=>
58    %string|unicode%(0) ""
59    [%u|b%"error"]=>
60    int(1)
61    [%u|b%"size"]=>
62    int(0)
63  }
64  [%u|b%"file3"]=>
65  array(5) {
66    [%u|b%"name"]=>
67    %string|unicode%(9) "file3.txt"
68    [%u|b%"type"]=>
69    %string|unicode%(16) "text/plain-file3"
70    [%u|b%"tmp_name"]=>
71    %string|unicode%(%d) "%s"
72    [%u|b%"error"]=>
73    int(0)
74    [%u|b%"size"]=>
75    int(1)
76  }
77}
78array(0) {
79}
80string(1) "1"
81string(1) "3"
82