1--TEST--
2session rfc1867 sid cookie
3--INI--
4file_uploads=1
5upload_max_filesize=1024
6session.save_path=
7session.name=PHPSESSID
8session.use_cookies=1
9session.use_only_cookies=0
10session.use_strict_mode=0
11session.auto_start=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--SKIPIF--
19<?php include('skipif.inc'); ?>
20--COOKIE--
21PHPSESSID=_
22--POST_RAW--
23Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
24-----------------------------20896060251896012921717172737
25Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"
26
27rfc1867_sid_invalid.php
28-----------------------------20896060251896012921717172737
29Content-Disposition: form-data; name="file1"; filename="file1.txt"
30
311
32-----------------------------20896060251896012921717172737
33Content-Disposition: form-data; name="file2"; filename="file2.txt"
34
352
36-----------------------------20896060251896012921717172737--
37--FILE--
38<?php
39error_reporting(0);
40ob_start();
41session_start();
42var_dump(session_id());
43var_dump(basename(__FILE__) == $_POST[ini_get("session.upload_progress.name")]);
44var_dump($_FILES);
45var_dump($_SESSION["upload_progress_" . basename(__FILE__)]);
46session_destroy();
47?>
48--CLEAN--
49<?php
50@unlink(__DIR__ . DIRECTORY_SEPARATOR . "rfc1867_sid_invalid.post.txt");
51?>
52--EXPECTF--
53Warning: Unknown: Session ID is too long or contains illegal characters. Only the A-Z, a-z, 0-9, "-", and "," characters are allowed in Unknown on line 0
54
55Warning: Unknown: Failed to read session data: files (path: ) in Unknown on line 0
56
57Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0
58
59Warning: Unknown: Session ID is too long or contains illegal characters. Only the A-Z, a-z, 0-9, "-", and "," characters are allowed in Unknown on line 0
60
61Warning: Unknown: Failed to read session data: files (path: ) in Unknown on line 0
62
63Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0
64string(%d) ""
65bool(true)
66array(2) {
67  ["file1"]=>
68  array(5) {
69    ["name"]=>
70    string(9) "file1.txt"
71    ["type"]=>
72    string(0) ""
73    ["tmp_name"]=>
74    string(%d) "%s"
75    ["error"]=>
76    int(0)
77    ["size"]=>
78    int(1)
79  }
80  ["file2"]=>
81  array(5) {
82    ["name"]=>
83    string(9) "file2.txt"
84    ["type"]=>
85    string(0) ""
86    ["tmp_name"]=>
87    string(%d) "%s"
88    ["error"]=>
89    int(0)
90    ["size"]=>
91    int(1)
92  }
93}
94array(5) {
95  ["start_time"]=>
96  int(%d)
97  ["content_length"]=>
98  int(469)
99  ["bytes_processed"]=>
100  int(469)
101  ["done"]=>
102  bool(true)
103  ["files"]=>
104  array(2) {
105    [0]=>
106    array(7) {
107      ["field_name"]=>
108      string(5) "file1"
109      ["name"]=>
110      string(9) "file1.txt"
111      ["tmp_name"]=>
112      string(%d) "%s"
113      ["error"]=>
114      int(0)
115      ["done"]=>
116      bool(true)
117      ["start_time"]=>
118      int(%d)
119      ["bytes_processed"]=>
120      int(1)
121    }
122    [1]=>
123    array(7) {
124      ["field_name"]=>
125      string(5) "file2"
126      ["name"]=>
127      string(9) "file2.txt"
128      ["tmp_name"]=>
129      string(%d) "%s"
130      ["error"]=>
131      int(0)
132      ["done"]=>
133      bool(true)
134      ["start_time"]=>
135      int(%d)
136      ["bytes_processed"]=>
137      int(1)
138    }
139  }
140}
141