summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBen Fuhrmannek2016-09-23 16:51:05 +0200
committerBen Fuhrmannek2016-09-23 16:51:05 +0200
commit578694779b34169deea9dc7788a583500b62975f (patch)
tree0fd01c57e57dc66e2fcafe7c0fc357ccb486e448 /tests
parentc3fd541beee3f6ef3f940f3c8e7485cf00c28396 (diff)
parent11c4ca8e14c6b0a94e95f8c70daa3e3c47a15d26 (diff)
Merge branch 'loglength'
Diffstat (limited to 'tests')
-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