1--TEST-- 2session rfc1867 sid cookie 3--INI-- 4file_uploads=1 5upload_max_filesize=1024 6session.save_path= 7session.name=PHPSESSID 8session.use_cookies=1 9session.use_strict_mode=0 10session.auto_start=0 11session.upload_progress.enabled=1 12session.upload_progress.cleanup=0 13session.upload_progress.prefix=upload_progress_ 14session.upload_progress.name=PHP_SESSION_UPLOAD_PROGRESS 15session.upload_progress.freq=0 16session.save_handler=files 17--EXTENSIONS-- 18session 19--SKIPIF-- 20<?php include('skipif.inc'); ?> 21--COOKIE-- 22PHPSESSID=_ 23--POST_RAW-- 24Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737 25-----------------------------20896060251896012921717172737 26Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS" 27 28rfc1867_sid_invalid.php 29-----------------------------20896060251896012921717172737 30Content-Disposition: form-data; name="file1"; filename="file1.txt" 31 321 33-----------------------------20896060251896012921717172737 34Content-Disposition: form-data; name="file2"; filename="file2.txt" 35 362 37-----------------------------20896060251896012921717172737-- 38--FILE-- 39<?php 40error_reporting(0); 41ob_start(); 42session_start(); 43var_dump(session_id()); 44var_dump(basename(__FILE__) == $_POST[ini_get("session.upload_progress.name")]); 45var_dump($_FILES); 46var_dump($_SESSION["upload_progress_" . basename(__FILE__)]); 47session_destroy(); 48?> 49--CLEAN-- 50<?php 51@unlink(__DIR__ . DIRECTORY_SEPARATOR . "rfc1867_sid_invalid.post.txt"); 52?> 53--EXPECTF-- 54Warning: PHP Request Startup: Session ID is too long or contains illegal characters. Only the A-Z, a-z, 0-9, "-", and "," characters are allowed in Unknown on line 0 55 56Warning: PHP Request Startup: Failed to read session data: files (path: ) in Unknown on line 0 57 58Warning: PHP Request Startup: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0 59 60Warning: PHP Request Startup: Session ID is too long or contains illegal characters. Only the A-Z, a-z, 0-9, "-", and "," characters are allowed in Unknown on line 0 61 62Warning: PHP Request Startup: Failed to read session data: files (path: ) in Unknown on line 0 63 64Warning: PHP Request Startup: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0 65string(%d) "" 66bool(true) 67array(2) { 68 ["file1"]=> 69 array(6) { 70 ["name"]=> 71 string(9) "file1.txt" 72 ["full_path"]=> 73 string(9) "file1.txt" 74 ["type"]=> 75 string(0) "" 76 ["tmp_name"]=> 77 string(%d) "%s" 78 ["error"]=> 79 int(0) 80 ["size"]=> 81 int(1) 82 } 83 ["file2"]=> 84 array(6) { 85 ["name"]=> 86 string(9) "file2.txt" 87 ["full_path"]=> 88 string(9) "file2.txt" 89 ["type"]=> 90 string(0) "" 91 ["tmp_name"]=> 92 string(%d) "%s" 93 ["error"]=> 94 int(0) 95 ["size"]=> 96 int(1) 97 } 98} 99array(5) { 100 ["start_time"]=> 101 int(%d) 102 ["content_length"]=> 103 int(469) 104 ["bytes_processed"]=> 105 int(469) 106 ["done"]=> 107 bool(true) 108 ["files"]=> 109 array(2) { 110 [0]=> 111 array(7) { 112 ["field_name"]=> 113 string(5) "file1" 114 ["name"]=> 115 string(9) "file1.txt" 116 ["tmp_name"]=> 117 string(%d) "%s" 118 ["error"]=> 119 int(0) 120 ["done"]=> 121 bool(true) 122 ["start_time"]=> 123 int(%d) 124 ["bytes_processed"]=> 125 int(1) 126 } 127 [1]=> 128 array(7) { 129 ["field_name"]=> 130 string(5) "file2" 131 ["name"]=> 132 string(9) "file2.txt" 133 ["tmp_name"]=> 134 string(%d) "%s" 135 ["error"]=> 136 int(0) 137 ["done"]=> 138 bool(true) 139 ["start_time"]=> 140 int(%d) 141 ["bytes_processed"]=> 142 int(1) 143 } 144 } 145} 146