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