Annotation of embedaddon/php/tests/basic/028.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: RFC1867 character quotting
3: --INI--
4: file_uploads=1
5: max_input_vars=1000
6: --POST_RAW--
7: Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
8: -----------------------------20896060251896012921717172737
9: Content-Disposition: form-data; name=name1
10:
11: testname
12: -----------------------------20896060251896012921717172737
13: Content-Disposition: form-data; name='name2'
14:
15: testname
16: -----------------------------20896060251896012921717172737
17: Content-Disposition: form-data; name="name3"
18:
19: testname
20: -----------------------------20896060251896012921717172737
21: Content-Disposition: form-data; name=name\4
22:
23: testname
24: -----------------------------20896060251896012921717172737
25: Content-Disposition: form-data; name=name\\5
26:
27: testname
28: -----------------------------20896060251896012921717172737
29: Content-Disposition: form-data; name=name\'6
30:
31: testname
32: -----------------------------20896060251896012921717172737
33: Content-Disposition: form-data; name=name\"7
34:
35: testname
36: -----------------------------20896060251896012921717172737
37: Content-Disposition: form-data; name='name\8'
38:
39: testname
40: -----------------------------20896060251896012921717172737
41: Content-Disposition: form-data; name='name\\9'
42:
43: testname
44: -----------------------------20896060251896012921717172737
45: Content-Disposition: form-data; name='name\'10'
46:
47: testname
48: -----------------------------20896060251896012921717172737
49: Content-Disposition: form-data; name='name\"11'
50:
51: testname
52: -----------------------------20896060251896012921717172737
53: Content-Disposition: form-data; name="name\12"
54:
55: testname
56: -----------------------------20896060251896012921717172737
57: Content-Disposition: form-data; name="name\\13"
58:
59: testname
60: -----------------------------20896060251896012921717172737
61: Content-Disposition: form-data; name="name\'14"
62:
63: testname
64: -----------------------------20896060251896012921717172737
65: Content-Disposition: form-data; name="name\"15"
66:
67: testname
68: -----------------------------20896060251896012921717172737--
69: --FILE--
70: <?php
71: var_dump($_POST);
72: ?>
73: --EXPECT--
74: array(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: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>