xref: /PHP-5.3/tests/basic/024.phpt (revision 2a2af1bf)
1--TEST--
2Test HTTP_RAW_POST_DATA creation
3--INI--
4magic_quotes_gpc=0
5always_populate_raw_post_data=1
6max_input_vars=1000
7--POST--
8a=ABC&y=XYZ&c[]=1&c[]=2&c[a]=3
9--FILE--
10<?php
11var_dump($_POST, $HTTP_RAW_POST_DATA);
12?>
13--EXPECT--
14array(3) {
15  ["a"]=>
16  string(3) "ABC"
17  ["y"]=>
18  string(3) "XYZ"
19  ["c"]=>
20  array(3) {
21    [0]=>
22    string(1) "1"
23    [1]=>
24    string(1) "2"
25    ["a"]=>
26    string(1) "3"
27  }
28}
29string(30) "a=ABC&y=XYZ&c[]=1&c[]=2&c[a]=3"
30