1--TEST--
2session rfc1867 disabled 2
3--INI--
4display_startup_errors=0
5file_uploads=1
6upload_max_filesize=1024
7session.save_path=
8session.name=PHPSESSID
9session.use_strict_mode=0
10session.use_cookies=1
11session.use_only_cookies=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=1%
17session.save_handler=files
18--EXTENSIONS--
19session
20--SKIPIF--
21<?php include('skipif.inc'); ?>
22--COOKIE--
23PHPSESSID=rfc1867-disabled-2
24--GET--
25PHPSESSID=rfc1867-disabled-2-get
26--POST_RAW--
27Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
28-----------------------------20896060251896012921717172737
29Content-Disposition: form-data; name="PHPSESSID"
30
31rfc1867-disabled-2-post
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($_FILES);
46var_dump(isset($_SESSION["upload_progress_" . basename(__FILE__)]));
47session_destroy();
48?>
49--EXPECTF--
50string(%d) "rfc1867-disabled-2"
51array(2) {
52  ["file1"]=>
53  array(6) {
54    ["name"]=>
55    string(9) "file1.txt"
56    ["full_path"]=>
57    string(9) "file1.txt"
58    ["type"]=>
59    string(0) ""
60    ["tmp_name"]=>
61    string(%d) "%s"
62    ["error"]=>
63    int(0)
64    ["size"]=>
65    int(1)
66  }
67  ["file2"]=>
68  array(6) {
69    ["name"]=>
70    string(9) "file2.txt"
71    ["full_path"]=>
72    string(9) "file2.txt"
73    ["type"]=>
74    string(0) ""
75    ["tmp_name"]=>
76    string(%d) "%s"
77    ["error"]=>
78    int(0)
79    ["size"]=>
80    int(1)
81  }
82}
83bool(false)
84