summaryrefslogtreecommitdiff
path: root/tests/executor/function_blacklist.phpt
blob: 52ebc8b8defe02a0baf8e136a5862306aee66506 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Testing: suhosin.executor.func.blacklist=max
--SKIPIF--
<?php include "../skipifnotcli.inc"; ?>
--INI--
suhosin.log.sapi=64
suhosin.executor.func.blacklist=max
--FILE--
<?php
	echo 'a';
	abs(1);
	echo 'b';
	max(1,2);
	echo 'c';
	abs(1);
	echo 'd';
?>
--EXPECTF--
abALERT - function blacklisted: max() (attacker 'REMOTE_ADDR not set', file '%s', line 5)

Warning: max() has been disabled for security reasons in %s on line 5