Annotation of embedaddon/php/ext/session/tests/rfc1867_disabled_2.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: session rfc1867 disabled 2
        !             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: session.save_path=
        !             9: session.name=PHPSESSID
        !            10: session.use_cookies=1
        !            11: session.use_only_cookies=0
        !            12: session.upload_progress.enabled=1
        !            13: session.upload_progress.cleanup=0
        !            14: session.upload_progress.prefix=upload_progress_
        !            15: session.upload_progress.name=PHP_SESSION_UPLOAD_PROGRESS
        !            16: session.upload_progress.freq=1%
        !            17: --SKIPIF--
        !            18: <?php include('skipif.inc'); ?>
        !            19: --COOKIE--
        !            20: PHPSESSID=rfc1867-tests
        !            21: --GET--
        !            22: PHPSESSID=rfc1867-tests-get
        !            23: --POST_RAW--
        !            24: Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
        !            25: -----------------------------20896060251896012921717172737
        !            26: Content-Disposition: form-data; name="PHPSESSID"
        !            27: 
        !            28: rfc1867-tests-post
        !            29: -----------------------------20896060251896012921717172737
        !            30: Content-Disposition: form-data; name="file1"; filename="file1.txt"
        !            31: 
        !            32: 1
        !            33: -----------------------------20896060251896012921717172737
        !            34: Content-Disposition: form-data; name="file2"; filename="file2.txt"
        !            35: 
        !            36: 2
        !            37: -----------------------------20896060251896012921717172737--
        !            38: --FILE--
        !            39: <?php
        !            40: session_start();
        !            41: var_dump(session_id());
        !            42: var_dump($_FILES);
        !            43: var_dump($_SESSION["upload_progress_" . basename(__FILE__)]);
        !            44: session_destroy();
        !            45: ?>
        !            46: --EXPECTF--
        !            47: string(%d) "rfc1867-tests"
        !            48: array(2) {
        !            49:   [%u|b%"file1"]=>
        !            50:   array(5) {
        !            51:     [%u|b%"name"]=>
        !            52:     %string|unicode%(9) "file1.txt"
        !            53:     [%u|b%"type"]=>
        !            54:     %string|unicode%(0) ""
        !            55:     [%u|b%"tmp_name"]=>
        !            56:     %string|unicode%(%d) "%s"
        !            57:     [%u|b%"error"]=>
        !            58:     int(0)
        !            59:     [%u|b%"size"]=>
        !            60:     int(1)
        !            61:   }
        !            62:   [%u|b%"file2"]=>
        !            63:   array(5) {
        !            64:     [%u|b%"name"]=>
        !            65:     %string|unicode%(9) "file2.txt"
        !            66:     [%u|b%"type"]=>
        !            67:     %string|unicode%(0) ""
        !            68:     [%u|b%"tmp_name"]=>
        !            69:     %string|unicode%(%d) "%s"
        !            70:     [%u|b%"error"]=>
        !            71:     int(0)
        !            72:     [%u|b%"size"]=>
        !            73:     int(1)
        !            74:   }
        !            75: }
        !            76: NULL

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