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