summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_user_functions.phpt
blob: 66303ec1ef7bf92a10fd85becd140389d4e8e1d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Disabled user-created functions
--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;
}
my_super_function();
?>
--EXPECTF--
Fatal error: [snuffleupagus][0.0.0.0][disabled_function] Aborted execution on call of the function 'my_super_function' in %a/disabled_user_functions.php on line 3