xref: /PHP-5.3/tests/basic/027.phpt (revision 2a2af1bf)
1--TEST--
2Handling of max_input_nesting_level being reached
3--INI--
4magic_quotes_gpc=0
5always_populate_raw_post_data=0
6display_errors=0
7max_input_nesting_level=10
8max_input_vars=1000
9track_errors=1
10log_errors=0
11--POST--
12a=1&b=ZYX&c[][][][][][][][][][][][][][][][][][][][][][]=123&d=123&e[][]][]=3
13--FILE--
14<?php
15var_dump($_POST, $php_errormsg);
16?>
17--EXPECT--
18array(4) {
19  ["a"]=>
20  string(1) "1"
21  ["b"]=>
22  string(3) "ZYX"
23  ["d"]=>
24  string(3) "123"
25  ["e"]=>
26  array(1) {
27    [0]=>
28    array(1) {
29      [0]=>
30      string(1) "3"
31    }
32  }
33}
34string(115) "Unknown: Input variable nesting level exceeded 10. To increase the limit change max_input_nesting_level in php.ini."
35