blob: 66591ba873d93d91186c7332f4a0e5ed36aa5ecf (
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 within blacklist called: printf() (attacker 'REMOTE_ADDR not set', file '%s', line 2)
Warning: printf() has been disabled for security reasons in %s on line 2
|