summaryrefslogtreecommitdiff
path: root/src/tests/disabled_function_param.phpt
blob: 9b8b9429d39cb660a168f2ad9299dc0fdc0e32b3 (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")) 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

Fatal error: [snuffleupagus][disabled_function] 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