summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_user_functions_indirect.phpt
blob: f663ded5d0e6fff381291dc3b2297acc9cf19e86 (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--
Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'my_super_function' in %a/disabled_user_functions_indirect.php on line 3