diff options
| author | Ben Fuhrmannek | 2014-09-19 18:23:50 +0200 |
|---|---|---|
| committer | Ben Fuhrmannek | 2014-09-19 18:23:50 +0200 |
| commit | c8fad499cdba383f13440bc14ffbb1fe8482f284 (patch) | |
| tree | 3a61bf0bbd269956c144b0f9c4c41034439ea09f | |
| parent | 36fbfd148ec65a5bfe91fcd666f3b693b06f1699 (diff) | |
test case for issue #62
| -rw-r--r-- | tests/filter/post_filter_empty_var.phpt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/filter/post_filter_empty_var.phpt b/tests/filter/post_filter_empty_var.phpt new file mode 100644 index 0000000..f1eef0c --- /dev/null +++ b/tests/filter/post_filter_empty_var.phpt | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | --TEST-- | ||
| 2 | suhosin POST filter with empty 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=&B=test | ||
| 14 | --FILE-- | ||
| 15 | <?php | ||
| 16 | var_dump($_POST); | ||
| 17 | ?> | ||
| 18 | --EXPECTF-- | ||
| 19 | array(2) { | ||
| 20 | ["A"]=> | ||
| 21 | string(0) "" | ||
| 22 | ["B"]=> | ||
| 23 | string(4) "test" | ||
| 24 | } | ||
