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