From 11c4ca8e14c6b0a94e95f8c70daa3e3c47a15d26 Mon Sep 17 00:00:00 2001 From: Ben Fuhrmannek Date: Sat, 30 Jul 2016 19:27:12 +0200 Subject: introduced suhosin.log.max_error_length to limit log length (#105) --- tests/logging/log_max_error_length.phpt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/logging/log_max_error_length.phpt (limited to 'tests') diff --git a/tests/logging/log_max_error_length.phpt b/tests/logging/log_max_error_length.phpt new file mode 100644 index 0000000..e6984c7 --- /dev/null +++ b/tests/logging/log_max_error_length.phpt @@ -0,0 +1,19 @@ +--TEST-- +Testing: suhosin.log.use-x-forwarded-for=On (without X-Forwarded-For set) +--SKIPIF-- + +--INI-- +suhosin.log.syslog=0 +suhosin.log.sapi=0 +suhosin.log.script=0 +suhosin.log.file=255 +suhosin.log.file.time=0 +suhosin.log.max_error_length=20 +suhosin.log.file.name={PWD}/suhosintest.$$.log.tmp +auto_append_file={PWD}/suhosintest.$$.log.tmp +--FILE-- + +--EXPECTF-- +ALERT - script tried to disa... %s -- cgit v1.3