xref: /PHP-5.5/tests/basic/028.phpt (revision 346e88ae)
1--TEST--
2RFC1867 character quotting
3--INI--
4file_uploads=1
5max_input_vars=1000
6--POST_RAW--
7Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
8-----------------------------20896060251896012921717172737
9Content-Disposition: form-data; name=name1
10
11testname
12-----------------------------20896060251896012921717172737
13Content-Disposition: form-data; name='name2'
14
15testname
16-----------------------------20896060251896012921717172737
17Content-Disposition: form-data; name="name3"
18
19testname
20-----------------------------20896060251896012921717172737
21Content-Disposition: form-data; name=name\4
22
23testname
24-----------------------------20896060251896012921717172737
25Content-Disposition: form-data; name=name\\5
26
27testname
28-----------------------------20896060251896012921717172737
29Content-Disposition: form-data; name=name\'6
30
31testname
32-----------------------------20896060251896012921717172737
33Content-Disposition: form-data; name=name\"7
34
35testname
36-----------------------------20896060251896012921717172737
37Content-Disposition: form-data; name='name\8'
38
39testname
40-----------------------------20896060251896012921717172737
41Content-Disposition: form-data; name='name\\9'
42
43testname
44-----------------------------20896060251896012921717172737
45Content-Disposition: form-data; name='name\'10'
46
47testname
48-----------------------------20896060251896012921717172737
49Content-Disposition: form-data; name='name\"11'
50
51testname
52-----------------------------20896060251896012921717172737
53Content-Disposition: form-data; name="name\12"
54
55testname
56-----------------------------20896060251896012921717172737
57Content-Disposition: form-data; name="name\\13"
58
59testname
60-----------------------------20896060251896012921717172737
61Content-Disposition: form-data; name="name\'14"
62
63testname
64-----------------------------20896060251896012921717172737
65Content-Disposition: form-data; name="name\"15"
66
67testname
68-----------------------------20896060251896012921717172737--
69--FILE--
70<?php
71var_dump($_POST);
72?>
73--EXPECT--
74array(15) {
75  ["name1"]=>
76  string(8) "testname"
77  ["name2"]=>
78  string(8) "testname"
79  ["name3"]=>
80  string(8) "testname"
81  ["name\4"]=>
82  string(8) "testname"
83  ["name\5"]=>
84  string(8) "testname"
85  ["name\'6"]=>
86  string(8) "testname"
87  ["name\"7"]=>
88  string(8) "testname"
89  ["name\8"]=>
90  string(8) "testname"
91  ["name\9"]=>
92  string(8) "testname"
93  ["name'10"]=>
94  string(8) "testname"
95  ["name\"11"]=>
96  string(8) "testname"
97  ["name\12"]=>
98  string(8) "testname"
99  ["name\13"]=>
100  string(8) "testname"
101  ["name\'14"]=>
102  string(8) "testname"
103  ["name"15"]=>
104  string(8) "testname"
105}
106