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

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