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

Warning: max() has been disabled for security reasons in %s : eval()'d code on line 2