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