blob: b7c5e1950b1c544a6f6b5c14597dcbf164cfdf24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--TEST--
Disabled user-created functions, called indirectly
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/config_disabled_user_functions.ini
--FILE--
<?php
function my_super_function() {
echo 1;
}
array_map('my_super_function', [1,2,3,4]);
?>
--EXPECTF--
[snuffleupagus][0.0.0.0][disabled_function][drop] The call to the function 'my_super_function' in %a/tests/disabled_user_functions_indirect.php:3 has been disabled.
|