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 18--SKIPIF-- 19<?php include('skipif.inc'); ?> 20--COOKIE-- 21PHPSESSID=_ 22--POST_RAW-- 23Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737 24-----------------------------20896060251896012921717172737 25Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS" 26 27rfc1867_sid_invalid.php 28-----------------------------20896060251896012921717172737 29Content-Disposition: form-data; name="file1"; filename="file1.txt" 30 311 32-----------------------------20896060251896012921717172737 33Content-Disposition: form-data; name="file2"; filename="file2.txt" 34 352 36-----------------------------20896060251896012921717172737-- 37--FILE-- 38<?php 39error_reporting(0); 40session_start(); 41var_dump(session_id()); 42var_dump(basename(__FILE__) == $_POST[ini_get("session.upload_progress.name")]); 43var_dump($_FILES); 44var_dump($_SESSION["upload_progress_" . basename(__FILE__)]); 45session_destroy(); 46?> 47--EXPECTF-- 48Warning: 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 49 50Warning: 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 51 52Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0 53 54Warning: 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 55 56Warning: 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 57 58Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0 59string(%d) "%s" 60bool(true) 61array(2) { 62 [%u|b%"file1"]=> 63 array(5) { 64 [%u|b%"name"]=> 65 %string|unicode%(9) "file1.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 [%u|b%"file2"]=> 76 array(5) { 77 [%u|b%"name"]=> 78 %string|unicode%(9) "file2.txt" 79 [%u|b%"type"]=> 80 %string|unicode%(0) "" 81 [%u|b%"tmp_name"]=> 82 %string|unicode%(%d) "%s" 83 [%u|b%"error"]=> 84 int(0) 85 [%u|b%"size"]=> 86 int(1) 87 } 88} 89NULL 90