From 3741554097cc73f03a9a6a4fa4d65dc01c120bd8 Mon Sep 17 00:00:00 2001 From: Ben Fuhrmannek Date: Fri, 6 Feb 2015 22:38:35 +0100 Subject: tests for eval white/blacklist + include white/blacklist --- tests/executor/eval_blacklist.phpt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/executor/eval_blacklist.phpt (limited to 'tests/executor/eval_blacklist.phpt') diff --git a/tests/executor/eval_blacklist.phpt b/tests/executor/eval_blacklist.phpt new file mode 100644 index 0000000..586bebc --- /dev/null +++ b/tests/executor/eval_blacklist.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing: suhosin.executor.eval.blacklist=max +--SKIPIF-- + +--INI-- +suhosin.log.sapi=64 +suhosin.executor.disable_eval=0 +suhosin.executor.eval.blacklist=max +--FILE-- + +--EXPECTF-- +ALERT - function within eval blacklist called: max() (attacker 'REMOTE_ADDR not set', file '%s', line 4) + +Warning: max() has been disabled for security reasons in %s : eval()'d code on line 2 -- cgit v1.3