Annotation of embedaddon/php/tests/basic/rfc1867_array_upload.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
                      2: rfc1867 array 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; name="file[]"; filename="file1.txt"
                     13: Content-Type: text/plain-file1
                     14: 
                     15: 1
                     16: -----------------------------20896060251896012921717172737
                     17: Content-Disposition: form-data; name="file[2]"; filename="file2.txt"
                     18: Content-Type: text/plain-file2
                     19: 
                     20: 2
                     21: -----------------------------20896060251896012921717172737
                     22: Content-Disposition: form-data; name="file[]"; filename="file3.txt"
                     23: Content-Type: text/plain-file3
                     24: 
                     25: 3
                     26: -----------------------------20896060251896012921717172737--
                     27: --FILE--
                     28: <?php
                     29: var_dump($_FILES);
                     30: var_dump($_POST);
                     31: ?>
                     32: --EXPECTF--
                     33: array(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: }
                     83: array(0) {
                     84: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>