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