summaryrefslogtreecommitdiff
path: root/src/tests/disabled_function_param.phpt
blob: e006a4bed6a5407d266693f6a69dc58787096069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Disable functions - match on a param
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "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
[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'qweqwe' in %a/tests/disabled_function_param.php:%d, because its argument '$asd' content (2) matched a rule.