1--TEST-- 2session rfc1867 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_strict_mode=0 11session.use_cookies=1 12session.use_only_cookies=0 13session.upload_progress.enabled=1 14session.upload_progress.cleanup=1 15session.upload_progress.prefix=upload_progress_ 16session.upload_progress.name=PHP_SESSION_UPLOAD_PROGRESS 17session.upload_progress.freq=1% 18session.upload_progress.min_freq=0.000000001 19--SKIPIF-- 20<?php include('skipif.inc'); ?> 21--COOKIE-- 22PHPSESSID=rfc1867-tests 23--GET-- 24PHPSESSID=rfc1867-tests-get 25--POST_RAW-- 26Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737 27-----------------------------20896060251896012921717172737 28Content-Disposition: form-data; name="PHPSESSID" 29 30rfc1867-tests-post 31-----------------------------20896060251896012921717172737 32Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS" 33 34rfc1867_cleanup.php 35-----------------------------20896060251896012921717172737 36Content-Disposition: form-data; name="file1"; filename="file1.txt" 37 381 39-----------------------------20896060251896012921717172737 40Content-Disposition: form-data; name="file2"; filename="file2.txt" 41 422 43-----------------------------20896060251896012921717172737-- 44--FILE-- 45<?php 46session_start(); 47var_dump(session_id()); 48var_dump(basename(__FILE__) == $_POST[ini_get("session.upload_progress.name")]); 49var_dump($_FILES); 50var_dump($_SESSION["upload_progress_" . basename(__FILE__)]); 51session_destroy(); 52?> 53--EXPECTF-- 54string(%d) "rfc1867-tests" 55bool(true) 56array(2) { 57 [%u|b%"file1"]=> 58 array(5) { 59 [%u|b%"name"]=> 60 %string|unicode%(9) "file1.txt" 61 [%u|b%"type"]=> 62 %string|unicode%(0) "" 63 [%u|b%"tmp_name"]=> 64 %string|unicode%(%d) "%s" 65 [%u|b%"error"]=> 66 int(0) 67 [%u|b%"size"]=> 68 int(1) 69 } 70 [%u|b%"file2"]=> 71 array(5) { 72 [%u|b%"name"]=> 73 %string|unicode%(9) "file2.txt" 74 [%u|b%"type"]=> 75 %string|unicode%(0) "" 76 [%u|b%"tmp_name"]=> 77 %string|unicode%(%d) "%s" 78 [%u|b%"error"]=> 79 int(0) 80 [%u|b%"size"]=> 81 int(1) 82 } 83} 84NULL 85