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

Warning: printf() has been disabled for security reasons in %s on line 2