summaryrefslogtreecommitdiff
path: root/src/tests/disabled_functions_param_array.phpt
blob: 5ca13aa6a952ed4d726295e78d35763bebc13027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
Disable functions
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/config_disabled_functions_param_array.ini
--FILE--
<?php
function foo($arr) {
	 echo $arr["a"]."\n";
}
$a=Array("a"=>"test1");
foo($a);

$a=Array("a"=>"abcde");
foo($a);

$a=Array("a"=>"abcd");
foo($a);
?>
--EXPECTF--
test1
abcde
[snuffleupagus][0.0.0.0][disabled_function][drop] The call to the function 'foo' in %a/disabled_functions_param_array.php:3 has been disabled, because its argument 'arr' content (Array) matched the rule '1'.