summaryrefslogtreecommitdiff
path: root/tests/logging
diff options
context:
space:
mode:
authorBen Fuhrmannek2016-07-30 19:27:12 +0200
committerBen Fuhrmannek2016-07-30 19:27:12 +0200
commit11c4ca8e14c6b0a94e95f8c70daa3e3c47a15d26 (patch)
tree13b8797668c2077ad6f198ea1220f79c30991d5b /tests/logging
parent9cdaaab816f3cc52bfe6346fd29242936c6bca75 (diff)
introduced suhosin.log.max_error_length to limit log length (#105)loglength
Diffstat (limited to 'tests/logging')
-rw-r--r--tests/logging/log_max_error_length.phpt19
1 files changed, 19 insertions, 0 deletions
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 @@
1--TEST--
2Testing: suhosin.log.use-x-forwarded-for=On (without X-Forwarded-For set)
3--SKIPIF--
4<?php include "../skipifnotcli.inc"; ?>
5--INI--
6suhosin.log.syslog=0
7suhosin.log.sapi=0
8suhosin.log.script=0
9suhosin.log.file=255
10suhosin.log.file.time=0
11suhosin.log.max_error_length=20
12suhosin.log.file.name={PWD}/suhosintest.$$.log.tmp
13auto_append_file={PWD}/suhosintest.$$.log.tmp
14--FILE--
15<?php
16 ini_set("memory_limit", "-1");
17?>
18--EXPECTF--
19ALERT - script tried to disa... %s