summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2012-02-08 14:07:27 +0000
committerXinchen Hui <laruence@php.net>2012-02-08 14:07:27 +0000
commit3f23b111515f50e1a273561b7400c33c9f268c0a (patch)
tree09f38c70e0f2bbf58d3e7f13b76e3eb49fc91618 /tests
parentce1a1f5f491ea149e0e67f07993a5ce374415238 (diff)
downloadphp-git-3f23b111515f50e1a273561b7400c33c9f268c0a.tar.gz
Fixed bug #61000 (Exceeding max nesting level doesn't delete numerical vars).
Diffstat (limited to 'tests')
-rw-r--r--tests/basic/bug61000.phpt38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/basic/bug61000.phpt b/tests/basic/bug61000.phpt
new file mode 100644
index 0000000000..d121114bcd
--- /dev/null
+++ b/tests/basic/bug61000.phpt
@@ -0,0 +1,38 @@
+--TEST--
+Bug #61000 (Exceeding max nesting level doesn't delete numerical vars)
+--INI--
+max_input_nesting_level=2
+--POST--
+1[a][]=foo&1[a][b][c]=bar
+--GET--
+a[a][]=foo&a[a][b][c]=bar
+--FILE--
+<?php
+print_r($_GET);
+print_r($_POST);
+--EXPECTF--
+Array
+(
+)
+Array
+(
+)
+--TEST--
+Bug #61000 (Exceeding max nesting level doesn't delete numerical vars)
+--INI--
+max_input_nesting_level=2
+--POST--
+1[a][]=foo&1[a][b][c]=bar
+--GET--
+a[a][]=foo&a[a][b][c]=bar
+--FILE--
+<?php
+print_r($_GET);
+print_r($_POST);
+--EXPECTF--
+Array
+(
+)
+Array
+(
+)