summaryrefslogtreecommitdiff
path: root/tests/executor/eval_whitelist_call_user_func.phpt
blob: 9ad1912372e6c3ca9141ab47dae9db804fd88e09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Testing: suhosin.executor.eval.whitelist=printf via call_user_func
--SKIPIF--
<?php include "../skipifnotcli.inc"; ?>
--INI--
suhosin.log.sapi=64
suhosin.executor.eval.whitelist=call_user_func
--FILE--
<?php
	eval('call_user_func("printf", "hello\n");');
?>
--EXPECTF--
ALERT - eval'd function not whitelisted: printf() (attacker 'REMOTE_ADDR not set', file '%s : eval()'d code', line 1)

Warning: printf() has been disabled for security reasons in %s : eval()'d code on line 1