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=0 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_inter.php_1 35-----------------------------20896060251896012921717172737 36Content-Disposition: form-data; name="file1"; filename="file1.txt" 37 381 39-----------------------------20896060251896012921717172737 40Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS" 41 42rfc1867_inter.php_2 43-----------------------------20896060251896012921717172737 44Content-Disposition: form-data; name="file2"; filename="file2.txt" 45 462 47-----------------------------20896060251896012921717172737-- 48--FILE-- 49<?php 50session_start(); 51var_dump(session_id()); 52var_dump($_FILES); 53var_dump($_SESSION["upload_progress_" . basename(__FILE__) . "_1"]); 54var_dump($_SESSION["upload_progress_" . basename(__FILE__) . "_2"]); 55session_destroy(); 56?> 57--EXPECTF-- 58string(%d) "rfc1867-tests" 59array(2) { 60 [%u|b%"file1"]=> 61 array(5) { 62 [%u|b%"name"]=> 63 %string|unicode%(9) "file1.txt" 64 [%u|b%"type"]=> 65 %string|unicode%(0) "" 66 [%u|b%"tmp_name"]=> 67 %string|unicode%(%d) "%s" 68 [%u|b%"error"]=> 69 int(0) 70 [%u|b%"size"]=> 71 int(1) 72 } 73 [%u|b%"file2"]=> 74 array(5) { 75 [%u|b%"name"]=> 76 %string|unicode%(9) "file2.txt" 77 [%u|b%"type"]=> 78 %string|unicode%(0) "" 79 [%u|b%"tmp_name"]=> 80 %string|unicode%(%d) "%s" 81 [%u|b%"error"]=> 82 int(0) 83 [%u|b%"size"]=> 84 int(1) 85 } 86} 87array(5) { 88 [%u|b%"start_time"]=> 89 int(%d) 90 [%u|b%"content_length"]=> 91 int(%d) 92 [%u|b%"bytes_processed"]=> 93 int(%d) 94 [%u|b%"done"]=> 95 bool(true) 96 [%u|b%"files"]=> 97 array(2) { 98 [0]=> 99 array(7) { 100 [%u|b%"field_name"]=> 101 %unicode|string%(5) "file1" 102 [%u|b%"name"]=> 103 %unicode|string%(9) "file1.txt" 104 [%u|b%"tmp_name"]=> 105 %unicode|string%(%d) "%s" 106 [%u|b%"error"]=> 107 int(0) 108 [%u|b%"done"]=> 109 bool(true) 110 [%u|b%"start_time"]=> 111 int(%d) 112 [%u|b%"bytes_processed"]=> 113 int(1) 114 } 115 [1]=> 116 array(7) { 117 [%u|b%"field_name"]=> 118 %unicode|string%(5) "file2" 119 [%u|b%"name"]=> 120 %unicode|string%(9) "file2.txt" 121 [%u|b%"tmp_name"]=> 122 %unicode|string%(%d) "%s" 123 [%u|b%"error"]=> 124 int(0) 125 [%u|b%"done"]=> 126 bool(true) 127 [%u|b%"start_time"]=> 128 int(%d) 129 [%u|b%"bytes_processed"]=> 130 int(1) 131 } 132 } 133} 134NULL 135