1--TEST-- 2session rfc1867 sid get 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=0 17session.save_handler=files 18--EXTENSIONS-- 19session 20--SKIPIF-- 21<?php include('skipif.inc'); ?> 22--GET-- 23PHPSESSID=rfc1867-sid-get 24--POST_RAW-- 25Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737 26-----------------------------20896060251896012921717172737 27Content-Disposition: form-data; name="PHPSESSID" 28 29rfc1867-sid-get-post 30-----------------------------20896060251896012921717172737 31Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS" 32 33rfc1867_sid_get.php 34-----------------------------20896060251896012921717172737 35Content-Disposition: form-data; name="file1"; filename="file1.txt" 36 371 38-----------------------------20896060251896012921717172737 39Content-Disposition: form-data; name="file2"; filename="file2.txt" 40 412 42-----------------------------20896060251896012921717172737-- 43--FILE-- 44<?php 45session_start(); 46var_dump(session_id()); 47var_dump(basename(__FILE__) == $_POST[ini_get("session.upload_progress.name")]); 48var_dump($_FILES); 49var_dump($_SESSION["upload_progress_" . basename(__FILE__)]); 50session_destroy(); 51?> 52--EXPECTF-- 53string(%d) "rfc1867-sid-get" 54bool(true) 55array(2) { 56 ["file1"]=> 57 array(6) { 58 ["name"]=> 59 string(9) "file1.txt" 60 ["full_path"]=> 61 string(9) "file1.txt" 62 ["type"]=> 63 string(0) "" 64 ["tmp_name"]=> 65 string(%d) "%s" 66 ["error"]=> 67 int(0) 68 ["size"]=> 69 int(1) 70 } 71 ["file2"]=> 72 array(6) { 73 ["name"]=> 74 string(9) "file2.txt" 75 ["full_path"]=> 76 string(9) "file2.txt" 77 ["type"]=> 78 string(0) "" 79 ["tmp_name"]=> 80 string(%d) "%s" 81 ["error"]=> 82 int(0) 83 ["size"]=> 84 int(1) 85 } 86} 87array(5) { 88 ["start_time"]=> 89 int(%d) 90 ["content_length"]=> 91 int(%d) 92 ["bytes_processed"]=> 93 int(%d) 94 ["done"]=> 95 bool(true) 96 ["files"]=> 97 array(2) { 98 [0]=> 99 array(7) { 100 ["field_name"]=> 101 string(5) "file1" 102 ["name"]=> 103 string(9) "file1.txt" 104 ["tmp_name"]=> 105 string(%d) "%s" 106 ["error"]=> 107 int(0) 108 ["done"]=> 109 bool(true) 110 ["start_time"]=> 111 int(%d) 112 ["bytes_processed"]=> 113 int(1) 114 } 115 [1]=> 116 array(7) { 117 ["field_name"]=> 118 string(5) "file2" 119 ["name"]=> 120 string(9) "file2.txt" 121 ["tmp_name"]=> 122 string(%d) "%s" 123 ["error"]=> 124 int(0) 125 ["done"]=> 126 bool(true) 127 ["start_time"]=> 128 int(%d) 129 ["bytes_processed"]=> 130 int(1) 131 } 132 } 133} 134