diff options
Diffstat (limited to 'src/tests/disabled_functions_register_shutdown_function.phpt')
| -rw-r--r-- | src/tests/disabled_functions_register_shutdown_function.phpt | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/tests/disabled_functions_register_shutdown_function.phpt b/src/tests/disabled_functions_register_shutdown_function.phpt deleted file mode 100644 index b6f1a10..0000000 --- a/src/tests/disabled_functions_register_shutdown_function.phpt +++ /dev/null | |||
| @@ -1,18 +0,0 @@ | |||
| 1 | --TEST-- | ||
| 2 | Disable functions - Called with register_shutdown_function | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/config_disabled_user_functions.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | function my_super_function() { | ||
| 10 | echo 'lose'; | ||
| 11 | } | ||
| 12 | echo "1337\n"; | ||
| 13 | register_shutdown_function('my_super_function'); | ||
| 14 | ?> | ||
| 15 | --EXPECTF-- | ||
| 16 | 1337 | ||
| 17 | |||
| 18 | Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'my_super_function' in %a/disabled_functions_register_shutdown_function.php on line 3 \ No newline at end of file | ||
