Annotation of embedaddon/php/tests/basic/rfc1867_anonymous_upload.phpt, revision 1.1

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
        !             8: --POST_RAW--
        !             9: Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
        !            10: -----------------------------20896060251896012921717172737
        !            11: Content-Disposition: form-data; filename="file1.txt"
        !            12: Content-Type: text/plain-file1
        !            13: 
        !            14: 1
        !            15: -----------------------------20896060251896012921717172737
        !            16: Content-Disposition: form-data; filename="file2.txt"
        !            17: Content-Type: text/plain-file2
        !            18: 
        !            19: 2
        !            20: -----------------------------20896060251896012921717172737--
        !            21: --FILE--
        !            22: <?php
        !            23: var_dump($_FILES);
        !            24: var_dump($_POST);
        !            25: ?>
        !            26: --EXPECTF--
        !            27: array(2) {
        !            28:   [%d]=>
        !            29:   array(5) {
        !            30:     [%u|b%"name"]=>
        !            31:     %string|unicode%(9) "file1.txt"
        !            32:     [%u|b%"type"]=>
        !            33:     %string|unicode%(16) "text/plain-file1"
        !            34:     [%u|b%"tmp_name"]=>
        !            35:     %string|unicode%(%d) "%s"
        !            36:     [%u|b%"error"]=>
        !            37:     int(0)
        !            38:     [%u|b%"size"]=>
        !            39:     int(1)
        !            40:   }
        !            41:   [%d]=>
        !            42:   array(5) {
        !            43:     [%u|b%"name"]=>
        !            44:     %string|unicode%(9) "file2.txt"
        !            45:     [%u|b%"type"]=>
        !            46:     %string|unicode%(16) "text/plain-file2"
        !            47:     [%u|b%"tmp_name"]=>
        !            48:     %string|unicode%(%d) "%s"
        !            49:     [%u|b%"error"]=>
        !            50:     int(0)
        !            51:     [%u|b%"size"]=>
        !            52:     int(1)
        !            53:   }
        !            54: }
        !            55: array(0) {
        !            56: }

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