some more error handling
This commit is contained in:
parent
9654c9d9e7
commit
d48ac6fa61
@ -5,6 +5,7 @@
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
register_shutdown_function('fatal_error_handler');
|
||||||
loadConfig();
|
loadConfig();
|
||||||
|
|
||||||
function loadConfig() {
|
function loadConfig() {
|
||||||
@ -115,13 +116,11 @@
|
|||||||
if(function_exists('error')) {
|
if(function_exists('error')) {
|
||||||
error('Caught fatal error: ' . $error['message'] . ' in <strong>' . $error['file'] . '</strong> on line ' . $error['line']);
|
error('Caught fatal error: ' . $error['message'] . ' in <strong>' . $error['file'] . '</strong> on line ' . $error['line']);
|
||||||
} else {
|
} else {
|
||||||
header('Content-Type: text/plain');
|
basic_error_function_because_the_other_isnt_loaded_yet('Caught fatal error: ' . $error['message'] . ' in ' . $error['file'] . ' on line ' . $error['line']);
|
||||||
echo 'Caught fatal error: ' . $error['message'] . ' in ' . $error['file'] . ' on line ' . $error['line'];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
register_shutdown_function('fatal_error_handler');
|
|
||||||
|
|
||||||
// Memcached
|
// Memcached
|
||||||
function memcached_open() {
|
function memcached_open() {
|
||||||
|
Loading…
Reference in New Issue
Block a user