From 2a4ef7b3c7bd354a30737005840f9d10f9ff858d Mon Sep 17 00:00:00 2001 From: Stefan Esser Date: Mon, 9 Jun 2014 09:29:18 +0200 Subject: Fix variable logging statistics outputting on every include --- tests/filter/filter_logging_statistics.phpt | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 tests/filter/filter_logging_statistics.phpt (limited to 'tests') diff --git a/tests/filter/filter_logging_statistics.phpt b/tests/filter/filter_logging_statistics.phpt new file mode 100644 index 0000000..a448d78 --- /dev/null +++ b/tests/filter/filter_logging_statistics.phpt @@ -0,0 +1,40 @@ +--TEST-- +suhosin variable filter logging statistics +--INI-- +suhosin.log.syslog=0 +suhosin.log.sapi=0 +suhosin.log.stdout=255 +suhosin.log.script=0 +suhosin.get.max_vars=5 +error_reporting=E_ALL +--SKIPIF-- + +--COOKIE-- +--GET-- +A=A&B=B&C=C&D=D&E=E&F=F&G=G& +--POST-- +--FILE-- + +--EXPECTF-- +Notice: Undefined variable: counter in %s on line 2 +array(5) { + ["A"]=> + string(1) "A" + ["B"]=> + string(1) "B" + ["C"]=> + string(1) "C" + ["D"]=> + string(1) "D" + ["E"]=> + string(1) "E" +} +ALERT - configured GET variable limit exceeded - dropped variable 'F' - all further GET variables are dropped (attacker 'REMOTE_ADDR not set', file '%s') +ALERT - dropped 2 request variables - (2 in GET, 0 in POST, 0 in COOKIE) (attacker 'REMOTE_ADDR not set', file '%s') -- cgit v1.3