示例#1
0
 function exception_error_handler($errno, $errstr, $errfile, $errline)
 {
     try {
         if (class_exists('Logger')) {
             $log = new \Fp\Log\Logger();
             $context = array('file' => $errfile, 'line' => $errline);
             $log->log($errno, $errstr, $context);
         } else {
             throw new \Exception($errstr, $errno);
         }
     } catch (\Exception $e) {
         throw $e;
     }
 }