diff options
Diffstat (limited to 'tests/logging')
| -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 | ||
