mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-26 00:10:55 +01:00
error handling
This commit is contained in:
parent
564e0ba962
commit
118a98ab9a
@ -96,6 +96,13 @@
|
||||
memcached_open();
|
||||
}
|
||||
|
||||
function fatal_error_handler() {
|
||||
if($error = error_get_last()) {
|
||||
echo 'Caught fatal error: ' . $error['message'] . ' in <strong>' . $error['file'] . '</strong> on line ' . $error['line'];
|
||||
}
|
||||
}
|
||||
register_shutdown_function('fatal_error_handler');
|
||||
|
||||
// Memcached
|
||||
function memcached_open() {
|
||||
global $memcached, $config;
|
||||
|
Loading…
Reference in New Issue
Block a user