1--TEST--
2session rfc1867 sid only cookie 2
3--INI--
4file_uploads=1
5upload_max_filesize=1024
6session.save_path=
7session.name=PHPSESSID
8session.use_cookies=1
9session.use_only_cookies=1
10session.upload_progress.enabled=1
11session.upload_progress.cleanup=0
12session.upload_progress.prefix=upload_progress_
13session.upload_progress.name=PHP_SESSION_UPLOAD_PROGRESS
14session.upload_progress.freq=0
15session.save_handler=files
16--EXTENSIONS--
17session
18--SKIPIF--
19<?php include('skipif.inc'); ?>
20--GET--
21PHPSESSID=rfc1867-sid-only-cookie-2-get
22--POST_RAW--
23Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
24-----------------------------20896060251896012921717172737
25Content-Disposition: form-data; name="PHPSESSID"
26
27rfc1867-sid-only-cookie-2-post
28-----------------------------20896060251896012921717172737
29Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"
30
31rfc1867_sid_only_cookie_2.php
32-----------------------------20896060251896012921717172737
33Content-Disposition: form-data; name="file1"; filename="file1.txt"
34
351
36-----------------------------20896060251896012921717172737
37Content-Disposition: form-data; name="file2"; filename="file2.txt"
38
392
40-----------------------------20896060251896012921717172737--
41--FILE--
42<?php
43session_start();
44var_dump(session_id());
45var_dump(basename(__FILE__) == $_POST[ini_get("session.upload_progress.name")]);
46var_dump($_FILES);
47var_dump(isset($_SESSION["upload_progress_" . basename(__FILE__)]));
48session_destroy();
49?>
50--EXPECTF--
51string(%d) "%s"
52bool(true)
53array(2) {
54  ["file1"]=>
55  array(6) {
56    ["name"]=>
57    string(9) "file1.txt"
58    ["full_path"]=>
59    string(9) "file1.txt"
60    ["type"]=>
61    string(0) ""
62    ["tmp_name"]=>
63    string(%d) "%s"
64    ["error"]=>
65    int(0)
66    ["size"]=>
67    int(1)
68  }
69  ["file2"]=>
70  array(6) {
71    ["name"]=>
72    string(9) "file2.txt"
73    ["full_path"]=>
74    string(9) "file2.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}
85bool(false)
86