summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_register_shutdown_function.phpt
blob: f33bb4266e832987c748aa7373283dab01a2091c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Disable functions - Called with register_shutdown_function
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/config_disabled_user_functions.ini
--FILE--
<?php 
function my_super_function() {
	echo 'lose';
}
echo "1337\n";
register_shutdown_function('my_super_function');
?>
--EXPECTF--
1337

Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'my_super_function' in %a/disabled_functions_register_shutdown_function.php on line 3