| 
<?php
 error_reporting(E_ALL);
 ini_set('display_errors', 0);
 
 function shutdown()
 {
 $isError = false;
 if ($error = error_get_last()){
 switch($error['type']){
 case E_ERROR:
 case E_CORE_ERROR:
 case E_COMPILE_ERROR:
 case E_USER_ERROR:
 $isError = true;
 break;
 }
 }
 
 if ($isError){
 echo "PHP ERROR: ({$error['message']})";
 } else {
 echo "";
 }
 }
 register_shutdown_function('shutdown');
 
 ?>
 |