summaryrefslogtreecommitdiff
path: root/src/tests/disabled_functions_param_pos.phpt
blob: de578b2cff4c72d1f6bf79ccafc3e18f6ee82adc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Disable functions - match on argument's position
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/disabled_functions_pos.ini
--FILE--
<?php 
system("id");
?>
--EXPECTF--
[snuffleupagus][0.0.0.0][disabled_function][drop] The call to the function 'system' in %a/disabled_functions_param_pos.php:%d has been disabled, because its argument 'command' content (id) matched a rule.