1--TEST-- 2session rfc1867 3--INI-- 4display_startup_errors=0 5file_uploads=1 6upload_max_filesize=1024 7session.save_path= 8session.name=PHPSESSID 9session.use_strict_mode=0 10session.use_cookies=1 11session.use_only_cookies=0 12session.upload_progress.enabled=1 13session.upload_progress.cleanup=0 14session.upload_progress.prefix=upload_progress_ 15session.upload_progress.name=PHP_SESSION_UPLOAD_PROGRESS 16session.upload_progress.freq=1% 17session.upload_progress.min_freq=0.000000001 18session.save_handler=files 19--EXTENSIONS-- 20session 21--SKIPIF-- 22<?php include('skipif.inc'); ?> 23--COOKIE-- 24PHPSESSID=rfc1867-inter 25--GET-- 26PHPSESSID=rfc1867-inter-get 27--POST_RAW-- 28Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737 29-----------------------------20896060251896012921717172737 30Content-Disposition: form-data; name="PHPSESSID" 31 32rfc1867-inter-post 33-----------------------------20896060251896012921717172737 34Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS" 35 36rfc1867_inter.php_1 37-----------------------------20896060251896012921717172737 38Content-Disposition: form-data; name="file1"; filename="file1.txt" 39 401 41-----------------------------20896060251896012921717172737 42Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS" 43 44rfc1867_inter.php_2 45-----------------------------20896060251896012921717172737 46Content-Disposition: form-data; name="file2"; filename="file2.txt" 47 482 49-----------------------------20896060251896012921717172737-- 50--FILE-- 51<?php 52session_start(); 53var_dump(session_id()); 54var_dump($_FILES); 55var_dump($_SESSION["upload_progress_" . basename(__FILE__) . "_1"]); 56var_dump(isset($_SESSION["upload_progress_" . basename(__FILE__) . "_2"])); 57session_destroy(); 58?> 59--EXPECTF-- 60string(%d) "rfc1867-inter" 61array(2) { 62 ["file1"]=> 63 array(6) { 64 ["name"]=> 65 string(9) "file1.txt" 66 ["full_path"]=> 67 string(9) "file1.txt" 68 ["type"]=> 69 string(0) "" 70 ["tmp_name"]=> 71 string(%d) "%s" 72 ["error"]=> 73 int(0) 74 ["size"]=> 75 int(1) 76 } 77 ["file2"]=> 78 array(6) { 79 ["name"]=> 80 string(9) "file2.txt" 81 ["full_path"]=> 82 string(9) "file2.txt" 83 ["type"]=> 84 string(0) "" 85 ["tmp_name"]=> 86 string(%d) "%s" 87 ["error"]=> 88 int(0) 89 ["size"]=> 90 int(1) 91 } 92} 93array(5) { 94 ["start_time"]=> 95 int(%d) 96 ["content_length"]=> 97 int(%d) 98 ["bytes_processed"]=> 99 int(%d) 100 ["done"]=> 101 bool(true) 102 ["files"]=> 103 array(2) { 104 [0]=> 105 array(7) { 106 ["field_name"]=> 107 string(5) "file1" 108 ["name"]=> 109 string(9) "file1.txt" 110 ["tmp_name"]=> 111 string(%d) "%s" 112 ["error"]=> 113 int(0) 114 ["done"]=> 115 bool(true) 116 ["start_time"]=> 117 int(%d) 118 ["bytes_processed"]=> 119 int(1) 120 } 121 [1]=> 122 array(7) { 123 ["field_name"]=> 124 string(5) "file2" 125 ["name"]=> 126 string(9) "file2.txt" 127 ["tmp_name"]=> 128 string(%d) "%s" 129 ["error"]=> 130 int(0) 131 ["done"]=> 132 bool(true) 133 ["start_time"]=> 134 int(%d) 135 ["bytes_processed"]=> 136 int(1) 137 } 138 } 139} 140bool(false) 141