Ejemplo n.º 1
0
 public static function shutdown()
 {
     $handledErrors = array(1 => 'E_ERROR', 4 => 'E_PARSE', 16 => 'E_CORE_ERROR', 64 => 'E_COMPILE_ERROR', 256 => 'E_USER_ERROR', 2048 => 'E_STRICT', 4096 => 'E_RECOVERABLE_ERROR', 8192 => 'E_DEPRECATED', 16384 => 'E_USER_DEPRECATED');
     self::$_shuttingDown = TRUE;
     if (self::$_inControl) {
         $error = error_get_last();
         if (array_key_exists($error["type"], $handledErrors)) {
             self::handle($error["type"], $error["message"], $error["file"], $error["line"]);
         }
     }
 }