Annotation of embedaddon/php/ext/session/tests/rfc1867_sid_only_cookie_2.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: session rfc1867 sid only cookie 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=1
! 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=0
! 17: --SKIPIF--
! 18: <?php include('skipif.inc'); ?>
! 19: --GET--
! 20: PHPSESSID=rfc1867-tests-get
! 21: --POST_RAW--
! 22: Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
! 23: -----------------------------20896060251896012921717172737
! 24: Content-Disposition: form-data; name="PHPSESSID"
! 25:
! 26: rfc1867-tests-post
! 27: -----------------------------20896060251896012921717172737
! 28: Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"
! 29:
! 30: rfc1867_sid_only_cookie_2.php
! 31: -----------------------------20896060251896012921717172737
! 32: Content-Disposition: form-data; name="file1"; filename="file1.txt"
! 33:
! 34: 1
! 35: -----------------------------20896060251896012921717172737
! 36: Content-Disposition: form-data; name="file2"; filename="file2.txt"
! 37:
! 38: 2
! 39: -----------------------------20896060251896012921717172737--
! 40: --FILE--
! 41: <?php
! 42: session_start();
! 43: var_dump(session_id());
! 44: var_dump(basename(__FILE__) == $_POST[ini_get("session.upload_progress.name")]);
! 45: var_dump($_FILES);
! 46: var_dump($_SESSION["upload_progress_" . basename(__FILE__)]);
! 47: session_destroy();
! 48: ?>
! 49: --EXPECTF--
! 50: string(%d) "%s"
! 51: bool(true)
! 52: array(2) {
! 53: [%u|b%"file1"]=>
! 54: array(5) {
! 55: [%u|b%"name"]=>
! 56: %string|unicode%(9) "file1.txt"
! 57: [%u|b%"type"]=>
! 58: %string|unicode%(0) ""
! 59: [%u|b%"tmp_name"]=>
! 60: %string|unicode%(%d) "%s"
! 61: [%u|b%"error"]=>
! 62: int(0)
! 63: [%u|b%"size"]=>
! 64: int(1)
! 65: }
! 66: [%u|b%"file2"]=>
! 67: array(5) {
! 68: [%u|b%"name"]=>
! 69: %string|unicode%(9) "file2.txt"
! 70: [%u|b%"type"]=>
! 71: %string|unicode%(0) ""
! 72: [%u|b%"tmp_name"]=>
! 73: %string|unicode%(%d) "%s"
! 74: [%u|b%"error"]=>
! 75: int(0)
! 76: [%u|b%"size"]=>
! 77: int(1)
! 78: }
! 79: }
! 80: NULL
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>