yes it will work

This commit is contained in:
Savetheinternet 2011-04-23 00:55:51 +10:00
parent ec21acbeaf
commit d8474a4888

View File

@ -98,10 +98,17 @@
function fatal_error_handler() { function fatal_error_handler() {
if($error = error_get_last()) { if($error = error_get_last()) {
error('Caught fatal error: ' . $error['message'] . ' in <strong>' . $error['file'] . '</strong> on line ' . $error['line']); if($error['type'] == E_ERROR) {
if(function_exists('error')) {
error('Caught fatal error: ' . $error['message'] . ' in <strong>' . $error['file'] . '</strong> on line ' . $error['line']);
} else {
header('Content-Type: text/plain');
echo 'Caught fatal error: ' . $error['message'] . ' in ' . $error['file'] . ' on line ' . $error['line'];
}
}
} }
} }
//register_shutdown_function('fatal_error_handler'); register_shutdown_function('fatal_error_handler');
// Memcached // Memcached
function memcached_open() { function memcached_open() {