1--TEST-- 2rfc1867 array upload 3--INI-- 4file_uploads=1 5error_reporting=E_ALL&~E_NOTICE 6comment=debug builds show some additional E_NOTICE errors 7upload_max_filesize=1024 8max_file_uploads=10 9--POST_RAW-- 10Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737 11-----------------------------20896060251896012921717172737 12Content-Disposition: form-data; name="file[]"; filename="file1.txt" 13Content-Type: text/plain-file1 14 151 16-----------------------------20896060251896012921717172737 17Content-Disposition: form-data; name="file[2]"; filename="file2.txt" 18Content-Type: text/plain-file2 19 202 21-----------------------------20896060251896012921717172737 22Content-Disposition: form-data; name="file[]"; filename="file3.txt" 23Content-Type: text/plain-file3 24 253 26-----------------------------20896060251896012921717172737-- 27--FILE-- 28<?php 29var_dump($_FILES); 30var_dump($_POST); 31?> 32--EXPECTF-- 33array(1) { 34 [%u|b%"file"]=> 35 array(5) { 36 [%u|b%"name"]=> 37 array(3) { 38 [0]=> 39 %unicode|string%(9) "file1.txt" 40 [2]=> 41 %unicode|string%(9) "file2.txt" 42 [3]=> 43 %unicode|string%(9) "file3.txt" 44 } 45 [%u|b%"type"]=> 46 array(3) { 47 [0]=> 48 %unicode|string%(16) "text/plain-file1" 49 [2]=> 50 %unicode|string%(16) "text/plain-file2" 51 [3]=> 52 %unicode|string%(16) "text/plain-file3" 53 } 54 [%u|b%"tmp_name"]=> 55 array(3) { 56 [0]=> 57 %unicode|string%(%d) "%s" 58 [2]=> 59 %unicode|string%(%d) "%s" 60 [3]=> 61 %unicode|string%(%d) "%s" 62 } 63 [%u|b%"error"]=> 64 array(3) { 65 [0]=> 66 int(0) 67 [2]=> 68 int(0) 69 [3]=> 70 int(0) 71 } 72 [%u|b%"size"]=> 73 array(3) { 74 [0]=> 75 int(1) 76 [2]=> 77 int(1) 78 [3]=> 79 int(1) 80 } 81 } 82} 83array(0) { 84} 85