Ejemplo n.º 1
0
 /**
  * Register script termination function
  * @param string | array handler callable with call_user_func
  * @return bool
  */
 static function set_error_terminator($handler)
 {
     if (!is_callable($handler)) {
         trigger_error('Fatal error handler is not callable (' . var_export($handler, 1) . ')', E_USER_WARNING);
         return false;
     }
     PLUGError::$deathfunc = $handler;
     return true;
 }