summaryrefslogtreecommitdiff
path: root/tests/filter
diff options
context:
space:
mode:
authorBen Fuhrmannek2015-11-27 08:08:45 +0100
committerBen Fuhrmannek2015-11-27 08:08:45 +0100
commit7b1b3fe12636fc6d7768beda9247f19670e0f5c3 (patch)
tree6303cc1e83cda3715575accbff8bddbdfb5ddb09 /tests/filter
parentb9825e3575e2531383acee111ff3ad9b0044142c (diff)
added test case for #98
Diffstat (limited to 'tests/filter')
-rw-r--r--tests/filter/post_filter_empty_avar.phpt27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/filter/post_filter_empty_avar.phpt b/tests/filter/post_filter_empty_avar.phpt
new file mode 100644
index 0000000..d09990c
--- /dev/null
+++ b/tests/filter/post_filter_empty_avar.phpt
@@ -0,0 +1,27 @@
1--TEST--
2suhosin POST filter with empty array variable
3--INI--
4suhosin.log.syslog=0
5suhosin.log.sapi=0
6suhosin.log.stdout=255
7suhosin.log.script=0
8--SKIPIF--
9<?php include('../skipif.inc'); ?>
10--COOKIE--
11--GET--
12--POST--
13a[]=&a[]=test
14--FILE--
15<?php
16var_dump($_POST);
17?>
18--EXPECTF--
19array(1) {
20 ["a"]=>
21 array(2) {
22 [0]=>
23 string(0) ""
24 [1]=>
25 string(4) "test"
26 }
27}