1--TEST--
2session rfc1867 disabled
3--INI--
4file_uploads=1
5error_reporting=E_ALL&~E_NOTICE
6comment=debug builds show some additional E_NOTICE errors
7upload_max_filesize=1024
8session.save_path=
9session.name=PHPSESSID
10session.use_cookies=1
11session.use_only_cookies=0
12session.upload_progress.enabled=0
13session.upload_progress.cleanup=0
14session.upload_progress.prefix=upload_progress_
15session.upload_progress.name=PHP_SESSION_UPLOAD_PROGRESS
16session.upload_progress.freq=1%
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($_SESSION["upload_progress_" . basename(__FILE__)]);
44session_destroy();
45?>
46--EXPECTF--
47string(%d) "rfc1867-tests"
48array(2) {
49  [%u|b%"file1"]=>
50  array(5) {
51    [%u|b%"name"]=>
52    %string|unicode%(9) "file1.txt"
53    [%u|b%"type"]=>
54    %string|unicode%(0) ""
55    [%u|b%"tmp_name"]=>
56    %string|unicode%(%d) "%s"
57    [%u|b%"error"]=>
58    int(0)
59    [%u|b%"size"]=>
60    int(1)
61  }
62  [%u|b%"file2"]=>
63  array(5) {
64    [%u|b%"name"]=>
65    %string|unicode%(9) "file2.txt"
66    [%u|b%"type"]=>
67    %string|unicode%(0) ""
68    [%u|b%"tmp_name"]=>
69    %string|unicode%(%d) "%s"
70    [%u|b%"error"]=>
71    int(0)
72    [%u|b%"size"]=>
73    int(1)
74  }
75}
76NULL
77