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