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

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