diff options
| author | Ben Fuhrmannek | 2015-11-27 08:08:45 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2015-11-27 08:08:45 +0100 |
| commit | 7b1b3fe12636fc6d7768beda9247f19670e0f5c3 (patch) | |
| tree | 6303cc1e83cda3715575accbff8bddbdfb5ddb09 | |
| parent | b9825e3575e2531383acee111ff3ad9b0044142c (diff) | |
added test case for #98
| -rw-r--r-- | tests/filter/post_filter_empty_avar.phpt | 27 |
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-- | ||
| 2 | suhosin POST filter with empty array variable | ||
| 3 | --INI-- | ||
| 4 | suhosin.log.syslog=0 | ||
| 5 | suhosin.log.sapi=0 | ||
| 6 | suhosin.log.stdout=255 | ||
| 7 | suhosin.log.script=0 | ||
| 8 | --SKIPIF-- | ||
| 9 | <?php include('../skipif.inc'); ?> | ||
| 10 | --COOKIE-- | ||
| 11 | --GET-- | ||
| 12 | --POST-- | ||
| 13 | a[]=&a[]=test | ||
| 14 | --FILE-- | ||
| 15 | <?php | ||
| 16 | var_dump($_POST); | ||
| 17 | ?> | ||
| 18 | --EXPECTF-- | ||
| 19 | array(1) { | ||
| 20 | ["a"]=> | ||
| 21 | array(2) { | ||
| 22 | [0]=> | ||
| 23 | string(0) "" | ||
| 24 | [1]=> | ||
| 25 | string(4) "test" | ||
| 26 | } | ||
| 27 | } | ||
