1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-29 09:44:28 +01:00

yes it will work

This commit is contained in:
Savetheinternet 2011-04-23 00:55:51 +10:00
parent 023ecf9d3e
commit e7d7a51854

View File

@ -98,10 +98,17 @@
function fatal_error_handler() { function fatal_error_handler() {
if($error = error_get_last()) { if($error = error_get_last()) {
if($error['type'] == E_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 {
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() {