blob: e2587e059d985b934040c3135c5fec58d90a114a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--TEST--
Disable functions - Called with register_shutdown_function
--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 'lose';
}
echo "1337\n";
register_shutdown_function('my_super_function');
?>
--EXPECTF--
1337
[snuffleupagus][0.0.0.0][disabled_function][drop] The call to the function 'my_super_function' in %a/tests/disabled_functions_register_shutdown_function.php:3 has been disabled.
|