Fatal errorのときにキャッチするエラーハンドラ
http://fdays.blogspot.com/2009/11/php-fatal-error.html
register_shutdown_function('shutdownHandler');
function shutdownHandler(){
$error = error_get_last();
if ($error['type'] == E_ERROR) {
error_log(...); //必要な情報を書き出す。
}
}