xref: /php-src/tests/basic/029.phpt (revision 74859783)
1--TEST--
2Shift_JIS request
3--EXTENSIONS--
4mbstring
5--INI--
6file_uploads=1
7mbstring.encoding_translation=1
8input_encoding=Shift_JIS
9internal_encoding=UTF-8
10--POST_RAW--
11Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
12-----------------------------20896060251896012921717172737
13Content-Disposition: form-data; name="�\�\�\"
14
15�h���~�t�@�\
16-----------------------------20896060251896012921717172737
17Content-Disposition: form-data; name="pics"; filename="file1.txt"
18Content-Type: text/plain
19
20file1
21
22-----------------------------20896060251896012921717172737--
23--FILE--
24<?php
25var_dump($_FILES);
26var_dump($_POST);
27?>
28--EXPECTF--
29array(1) {
30  ["pics"]=>
31  array(6) {
32    ["name"]=>
33    string(9) "file1.txt"
34    ["full_path"]=>
35    string(9) "file1.txt"
36    ["type"]=>
37    string(10) "text/plain"
38    ["tmp_name"]=>
39    string(%d) "%s"
40    ["error"]=>
41    int(0)
42    ["size"]=>
43    int(6)
44  }
45}
46array(1) {
47  ["予蚕能"]=>
48  string(18) "ドレミファソ"
49}
50