1--TEST--
2session rfc1867 no name
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_strict_mode=0
11session.use_cookies=1
12session.use_only_cookies=0
13session.upload_progress.enabled=1
14session.upload_progress.cleanup=0
15session.upload_progress.prefix=upload_progress_
16session.upload_progress.name=PHP_SESSION_UPLOAD_PROGRESS
17session.upload_progress.freq=1%
18--SKIPIF--
19<?php include('skipif.inc'); ?>
20--COOKIE--
21PHPSESSID=rfc1867-tests
22--GET--
23PHPSESSID=rfc1867-tests-get
24--POST_RAW--
25Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
26-----------------------------20896060251896012921717172737
27Content-Disposition: form-data; name="PHPSESSID"
28
29rfc1867-tests-post
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($_FILES);
44var_dump($_SESSION["upload_progress_" . basename(__FILE__)]);
45session_destroy();
46?>
47--EXPECTF--
48string(%d) "rfc1867-tests"
49array(2) {
50  [%u|b%"file1"]=>
51  array(5) {
52    [%u|b%"name"]=>
53    %string|unicode%(9) "file1.txt"
54    [%u|b%"type"]=>
55    %string|unicode%(0) ""
56    [%u|b%"tmp_name"]=>
57    %string|unicode%(%d) "%s"
58    [%u|b%"error"]=>
59    int(0)
60    [%u|b%"size"]=>
61    int(1)
62  }
63  [%u|b%"file2"]=>
64  array(5) {
65    [%u|b%"name"]=>
66    %string|unicode%(9) "file2.txt"
67    [%u|b%"type"]=>
68    %string|unicode%(0) ""
69    [%u|b%"tmp_name"]=>
70    %string|unicode%(%d) "%s"
71    [%u|b%"error"]=>
72    int(0)
73    [%u|b%"size"]=>
74    int(1)
75  }
76}
77NULL
78