blob: e318a15ff496a9c083891a312cc23c083d30b0cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--TEST--
Disable functions - match on a param
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/disabled_function_param.ini
--FILE--
<?php
function qweqwe($asd) {
echo "OK\n";
}
$asd = Array(2);
qweqwe(Array(1));
qweqwe(Array(2));
?>
--EXPECTF--
OK
Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'qweqwe', because its argument '$asd' content (2) matched a rule in %a/disabled_function_param.php on line 3
|