1--TEST--
2session rfc1867 disabled
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=0
12session.upload_progress.cleanup=0
13session.upload_progress.prefix=upload_progress_
14session.upload_progress.name=PHP_SESSION_UPLOAD_PROGRESS
15session.upload_progress.freq=1%
16session.save_handler=files
17--SKIPIF--
18<?php include('skipif.inc'); ?>
19--COOKIE--
20PHPSESSID=rfc1867-tests
21--GET--
22PHPSESSID=rfc1867-tests-get
23--POST_RAW--
24Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
25-----------------------------20896060251896012921717172737
26Content-Disposition: form-data; name="PHPSESSID"
27
28rfc1867-tests-post
29-----------------------------20896060251896012921717172737
30Content-Disposition: form-data; name="file1"; filename="file1.txt"
31
321
33-----------------------------20896060251896012921717172737
34Content-Disposition: form-data; name="file2"; filename="file2.txt"
35
362
37-----------------------------20896060251896012921717172737--
38--FILE--
39<?php
40session_start();
41var_dump(session_id());
42var_dump($_FILES);
43var_dump(isset($_SESSION["upload_progress_" . basename(__FILE__)]));
44session_destroy();
45?>
46--EXPECTF--
47string(%d) "rfc1867-tests"
48array(2) {
49  ["file1"]=>
50  array(5) {
51    ["name"]=>
52    string(9) "file1.txt"
53    ["type"]=>
54    string(0) ""
55    ["tmp_name"]=>
56    string(%d) "%s"
57    ["error"]=>
58    int(0)
59    ["size"]=>
60    int(1)
61  }
62  ["file2"]=>
63  array(5) {
64    ["name"]=>
65    string(9) "file2.txt"
66    ["type"]=>
67    string(0) ""
68    ["tmp_name"]=>
69    string(%d) "%s"
70    ["error"]=>
71    int(0)
72    ["size"]=>
73    int(1)
74  }
75}
76bool(false)
77