summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_register_tick_function.phpt
blob: 623e4242b695767925ba88593648cc9b6bb4ed47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Disable functions - Called with register_tick_function
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/config_disabled_user_functions.ini
--FILE--
<?php 
declare(ticks=1);
function my_super_function() {
	echo 'lose';
}
echo "1337\n";
register_tick_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_tick_function.php on line 4