Annotation of embedaddon/php/ext/session/tests/rfc1867_inter.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: session rfc1867
! 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: session.upload_progress.min_freq=0.000000001
! 18: --SKIPIF--
! 19: <?php include('skipif.inc'); ?>
! 20: --COOKIE--
! 21: PHPSESSID=rfc1867-tests
! 22: --GET--
! 23: PHPSESSID=rfc1867-tests-get
! 24: --POST_RAW--
! 25: Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
! 26: -----------------------------20896060251896012921717172737
! 27: Content-Disposition: form-data; name="PHPSESSID"
! 28:
! 29: rfc1867-tests-post
! 30: -----------------------------20896060251896012921717172737
! 31: Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"
! 32:
! 33: rfc1867_inter.php_1
! 34: -----------------------------20896060251896012921717172737
! 35: Content-Disposition: form-data; name="file1"; filename="file1.txt"
! 36:
! 37: 1
! 38: -----------------------------20896060251896012921717172737
! 39: Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"
! 40:
! 41: rfc1867_inter.php_2
! 42: -----------------------------20896060251896012921717172737
! 43: Content-Disposition: form-data; name="file2"; filename="file2.txt"
! 44:
! 45: 2
! 46: -----------------------------20896060251896012921717172737--
! 47: --FILE--
! 48: <?php
! 49: session_start();
! 50: var_dump(session_id());
! 51: var_dump($_FILES);
! 52: var_dump($_SESSION["upload_progress_" . basename(__FILE__) . "_1"]);
! 53: var_dump($_SESSION["upload_progress_" . basename(__FILE__) . "_2"]);
! 54: session_destroy();
! 55: ?>
! 56: --EXPECTF--
! 57: string(%d) "rfc1867-tests"
! 58: array(2) {
! 59: [%u|b%"file1"]=>
! 60: array(5) {
! 61: [%u|b%"name"]=>
! 62: %string|unicode%(9) "file1.txt"
! 63: [%u|b%"type"]=>
! 64: %string|unicode%(0) ""
! 65: [%u|b%"tmp_name"]=>
! 66: %string|unicode%(%d) "%s"
! 67: [%u|b%"error"]=>
! 68: int(0)
! 69: [%u|b%"size"]=>
! 70: int(1)
! 71: }
! 72: [%u|b%"file2"]=>
! 73: array(5) {
! 74: [%u|b%"name"]=>
! 75: %string|unicode%(9) "file2.txt"
! 76: [%u|b%"type"]=>
! 77: %string|unicode%(0) ""
! 78: [%u|b%"tmp_name"]=>
! 79: %string|unicode%(%d) "%s"
! 80: [%u|b%"error"]=>
! 81: int(0)
! 82: [%u|b%"size"]=>
! 83: int(1)
! 84: }
! 85: }
! 86: array(5) {
! 87: [%u|b%"start_time"]=>
! 88: int(%d)
! 89: [%u|b%"content_length"]=>
! 90: int(%d)
! 91: [%u|b%"bytes_processed"]=>
! 92: int(%d)
! 93: [%u|b%"done"]=>
! 94: bool(true)
! 95: [%u|b%"files"]=>
! 96: array(2) {
! 97: [0]=>
! 98: array(7) {
! 99: [%u|b%"field_name"]=>
! 100: %unicode|string%(5) "file1"
! 101: [%u|b%"name"]=>
! 102: %unicode|string%(9) "file1.txt"
! 103: [%u|b%"tmp_name"]=>
! 104: %unicode|string%(%d) "%s"
! 105: [%u|b%"error"]=>
! 106: int(0)
! 107: [%u|b%"done"]=>
! 108: bool(true)
! 109: [%u|b%"start_time"]=>
! 110: int(%d)
! 111: [%u|b%"bytes_processed"]=>
! 112: int(1)
! 113: }
! 114: [1]=>
! 115: array(7) {
! 116: [%u|b%"field_name"]=>
! 117: %unicode|string%(5) "file2"
! 118: [%u|b%"name"]=>
! 119: %unicode|string%(9) "file2.txt"
! 120: [%u|b%"tmp_name"]=>
! 121: %unicode|string%(%d) "%s"
! 122: [%u|b%"error"]=>
! 123: int(0)
! 124: [%u|b%"done"]=>
! 125: bool(true)
! 126: [%u|b%"start_time"]=>
! 127: int(%d)
! 128: [%u|b%"bytes_processed"]=>
! 129: int(1)
! 130: }
! 131: }
! 132: }
! 133: NULL
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>