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--SKIPIF--
17<?php include('skipif.inc'); ?>
18--GET--
19PHPSESSID=rfc1867-tests-get
20--POST_RAW--
21Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
22-----------------------------20896060251896012921717172737
23Content-Disposition: form-data; name="PHPSESSID"
24
25rfc1867-tests-post
26-----------------------------20896060251896012921717172737
27Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"
28
29rfc1867_sid_only_cookie_2.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
41session_start();
42var_dump(session_id());
43var_dump(basename(__FILE__) == $_POST[ini_get("session.upload_progress.name")]);
44var_dump($_FILES);
45var_dump(isset($_SESSION["upload_progress_" . basename(__FILE__)]));
46session_destroy();
47?>
48--EXPECTF--
49string(%d) "%s"
50bool(true)
51array(2) {
52  ["file1"]=>
53  array(5) {
54    ["name"]=>
55    string(9) "file1.txt"
56    ["type"]=>
57    string(0) ""
58    ["tmp_name"]=>
59    string(%d) "%s"
60    ["error"]=>
61    int(0)
62    ["size"]=>
63    int(1)
64  }
65  ["file2"]=>
66  array(5) {
67    ["name"]=>
68    string(9) "file2.txt"
69    ["type"]=>
70    string(0) ""
71    ["tmp_name"]=>
72    string(%d) "%s"
73    ["error"]=>
74    int(0)
75    ["size"]=>
76    int(1)
77  }
78}
79bool(false)
80