Annotation of embedaddon/php/tests/basic/rfc1867_anonymous_upload.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
2: rfc1867 anonymous upload
3: --INI--
4: file_uploads=1
5: error_reporting=E_ALL&~E_NOTICE
6: comment=debug builds show some additional E_NOTICE errors
7: upload_max_filesize=1024
1.1.1.2 ! misho 8: max_file_uploads=10
1.1 misho 9: --POST_RAW--
10: Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
11: -----------------------------20896060251896012921717172737
12: Content-Disposition: form-data; filename="file1.txt"
13: Content-Type: text/plain-file1
14:
15: 1
16: -----------------------------20896060251896012921717172737
17: Content-Disposition: form-data; filename="file2.txt"
18: Content-Type: text/plain-file2
19:
20: 2
21: -----------------------------20896060251896012921717172737--
22: --FILE--
23: <?php
24: var_dump($_FILES);
25: var_dump($_POST);
26: ?>
27: --EXPECTF--
28: array(2) {
29: [%d]=>
30: array(5) {
31: [%u|b%"name"]=>
32: %string|unicode%(9) "file1.txt"
33: [%u|b%"type"]=>
34: %string|unicode%(16) "text/plain-file1"
35: [%u|b%"tmp_name"]=>
36: %string|unicode%(%d) "%s"
37: [%u|b%"error"]=>
38: int(0)
39: [%u|b%"size"]=>
40: int(1)
41: }
42: [%d]=>
43: array(5) {
44: [%u|b%"name"]=>
45: %string|unicode%(9) "file2.txt"
46: [%u|b%"type"]=>
47: %string|unicode%(16) "text/plain-file2"
48: [%u|b%"tmp_name"]=>
49: %string|unicode%(%d) "%s"
50: [%u|b%"error"]=>
51: int(0)
52: [%u|b%"size"]=>
53: int(1)
54: }
55: }
56: array(0) {
57: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>