error handling
This commit is contained in:
parent
2ac8dc2c0f
commit
a59b8cf1ba
@ -96,6 +96,13 @@
|
|||||||
memcached_open();
|
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
|
// Memcached
|
||||||
function memcached_open() {
|
function memcached_open() {
|
||||||
global $memcached, $config;
|
global $memcached, $config;
|
||||||
|
Loading…
Reference in New Issue
Block a user