diff options
| author | Ben Fuhrmannek | 2016-07-30 19:27:12 +0200 |
|---|---|---|
| committer | Ben Fuhrmannek | 2016-07-30 19:27:12 +0200 |
| commit | 11c4ca8e14c6b0a94e95f8c70daa3e3c47a15d26 (patch) | |
| tree | 13b8797668c2077ad6f198ea1220f79c30991d5b /tests | |
| parent | 9cdaaab816f3cc52bfe6346fd29242936c6bca75 (diff) | |
introduced suhosin.log.max_error_length to limit log length (#105)loglength
Diffstat (limited to '')
| -rw-r--r-- | tests/logging/log_max_error_length.phpt | 19 |
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-- | ||
| 2 | Testing: suhosin.log.use-x-forwarded-for=On (without X-Forwarded-For set) | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php include "../skipifnotcli.inc"; ?> | ||
| 5 | --INI-- | ||
| 6 | suhosin.log.syslog=0 | ||
| 7 | suhosin.log.sapi=0 | ||
| 8 | suhosin.log.script=0 | ||
| 9 | suhosin.log.file=255 | ||
| 10 | suhosin.log.file.time=0 | ||
| 11 | suhosin.log.max_error_length=20 | ||
| 12 | suhosin.log.file.name={PWD}/suhosintest.$$.log.tmp | ||
| 13 | auto_append_file={PWD}/suhosintest.$$.log.tmp | ||
| 14 | --FILE-- | ||
| 15 | <?php | ||
| 16 | ini_set("memory_limit", "-1"); | ||
| 17 | ?> | ||
| 18 | --EXPECTF-- | ||
| 19 | ALERT - script tried to disa... %s | ||
