diff options
Diffstat (limited to 'tests/logging/logscript_executable.phpt')
| -rw-r--r-- | tests/logging/logscript_executable.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/logging/logscript_executable.phpt b/tests/logging/logscript_executable.phpt new file mode 100644 index 0000000..f6d535c --- /dev/null +++ b/tests/logging/logscript_executable.phpt | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | --TEST-- | ||
| 2 | Testing: suhosin.log.script.name=EXECUTABLE | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php include "../skipifnotcli.inc"; ?> | ||
| 5 | --INI-- | ||
| 6 | suhosin.log.sapi=0 | ||
| 7 | suhosin.log.stdout=0 | ||
| 8 | suhosin.log.script=255 | ||
| 9 | suhosin.log.script.name=/bin/echo | ||
| 10 | suhosin.log.syslog=0 | ||
| 11 | suhosin.executor.func.blacklist=max | ||
| 12 | --FILE-- | ||
| 13 | <?php | ||
| 14 | max(1,2); | ||
| 15 | ?> | ||
| 16 | --EXPECTF-- | ||
| 17 | Warning: max() has been disabled for security reasons in %s on line 2 \ No newline at end of file | ||
