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