Beispiel #1
0
 public static function registerErrorHandler($handlerCallback = null)
 {
     if (is_null($handlerCallback)) {
         $handlerCallback = array(get_class(), 'handleError');
     }
     // prevent stack error
     Zend_Loader::loadClass('BaseZF_Error_Exception');
     // Register new callback and backup old ones
     // To convert normal error has exception
     self::$_oldErrorhandler = set_error_handler($handlerCallback);
     return self::$_oldErrorhandler;
 }