1--TEST-- 2session rfc1867 sid cookie 3--INI-- 4file_uploads=1 5error_reporting=E_ALL&~E_NOTICE 6comment=debug builds show some additional E_NOTICE errors 7upload_max_filesize=1024 8session.save_path= 9session.name=PHPSESSID 10session.use_cookies=1 11session.use_only_cookies=0 12session.auto_start=0 13session.upload_progress.enabled=1 14session.upload_progress.cleanup=0 15session.upload_progress.prefix=upload_progress_ 16session.upload_progress.name=PHP_SESSION_UPLOAD_PROGRESS 17session.upload_progress.freq=0 18session.save_handler=files 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); 41session_start(); 42var_dump(session_id()); 43var_dump(basename(__FILE__) == $_POST[ini_get("session.upload_progress.name")]); 44var_dump($_FILES); 45var_dump($_SESSION["upload_progress_" . basename(__FILE__)]); 46session_destroy(); 47?> 48--EXPECTF-- 49Warning: Unknown: The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in Unknown on line 0 50 51Warning: Unknown: The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in Unknown on line 0 52 53Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0 54 55Warning: Unknown: The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in Unknown on line 0 56 57Warning: Unknown: The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in Unknown on line 0 58 59Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0 60string(%d) "%s" 61bool(true) 62array(2) { 63 [%u|b%"file1"]=> 64 array(5) { 65 [%u|b%"name"]=> 66 %string|unicode%(9) "file1.txt" 67 [%u|b%"type"]=> 68 %string|unicode%(0) "" 69 [%u|b%"tmp_name"]=> 70 %string|unicode%(%d) "%s" 71 [%u|b%"error"]=> 72 int(0) 73 [%u|b%"size"]=> 74 int(1) 75 } 76 [%u|b%"file2"]=> 77 array(5) { 78 [%u|b%"name"]=> 79 %string|unicode%(9) "file2.txt" 80 [%u|b%"type"]=> 81 %string|unicode%(0) "" 82 [%u|b%"tmp_name"]=> 83 %string|unicode%(%d) "%s" 84 [%u|b%"error"]=> 85 int(0) 86 [%u|b%"size"]=> 87 int(1) 88 } 89} 90NULL 91