xref: /PHP-5.6/tests/basic/024_1.phpt (revision cea59a74)
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--EXPECTF--
13Notice: Undefined variable: HTTP_RAW_POST_DATA in %s on line %d
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}
29NULL
30