From 90fff832ca49aff1c7dd030a8c47acf2a38a22a0 Mon Sep 17 00:00:00 2001 From: Stefan Esser Date: Tue, 11 Feb 2014 11:29:37 +0100 Subject: Commit test cases for the function blacklist/whitelist problems --- tests/executor/function_blacklist.phpt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/executor/function_blacklist.phpt (limited to 'tests/executor/function_blacklist.phpt') diff --git a/tests/executor/function_blacklist.phpt b/tests/executor/function_blacklist.phpt new file mode 100644 index 0000000..d3df2ed --- /dev/null +++ b/tests/executor/function_blacklist.phpt @@ -0,0 +1,17 @@ +--TEST-- +Testing: suhosin.executor.func.blacklist=max +--SKIPIF-- + +--INI-- +suhosin.log.sapi=64 +suhosin.executor.func.blacklist=max +--FILE-- + +--EXPECTF-- +ALERT - function within blacklist called: max() (attacker 'REMOTE_ADDR not set', file '%s', line 3) + +Warning: max() has been disabled for security reasons in %s on line 3 -- cgit v1.3