blob: 7194548a07db18c554a0d6a23142fcb56dbad228 (
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
25
26
|
--TEST--
Disable functions
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
<?php if (PHP_VERSION_ID >= 80000) print "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
Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo', because its argument '$arr' content (abcd) matched the rule '1' in %a/disabled_functions_param_array.php on line 3
|