From 7c208bb39a6440f7fc2d6f0913a7ab3e3249a221 Mon Sep 17 00:00:00 2001 From: Stefan Esser Date: Thu, 15 May 2014 14:09:27 +0200 Subject: Adding some tests for logging shellscripts --- tests/logging/logscript_nonexistant.phpt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/logging/logscript_nonexistant.phpt (limited to 'tests/logging/logscript_nonexistant.phpt') diff --git a/tests/logging/logscript_nonexistant.phpt b/tests/logging/logscript_nonexistant.phpt new file mode 100644 index 0000000..4d501be --- /dev/null +++ b/tests/logging/logscript_nonexistant.phpt @@ -0,0 +1,19 @@ +--TEST-- +Testing: suhosin.log.script.name=NON-EXISTANT +--SKIPIF-- + +--INI-- +suhosin.log.sapi=0 +suhosin.log.stdout=0 +suhosin.log.script=255 +suhosin.log.script.name=/php/non-existant-script-really-really-really +suhosin.log.syslog=0 +suhosin.executor.func.blacklist=max +--FILE-- + +--EXPECTF-- +ALERT - unable to find logging shell script /php/non-existant-script-really-really-really - file dropped (attacker 'REMOTE_ADDR not set', file '%s', line 2) + +Warning: max() has been disabled for security reasons in %s on line 2 \ No newline at end of file -- cgit v1.3