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