ZBlogException::SetErrorHook PHP Method

SetErrorHook() public static method

设定错误处理函数
public static SetErrorHook ( )
    public static function SetErrorHook()
    {
        set_error_handler('Debug_Error_Handler');
        set_exception_handler('Debug_Exception_Handler');
        register_shutdown_function('Debug_Shutdown_Handler');
    }

Usage Example

Esempio n. 1
0
 function __construct()
 {
     global $option, $lang, $blogpath, $bloghost, $cookiespath, $usersdir, $table, $datainfo;
     global $blogversion, $blogtitle, $blogname, $blogsubname, $blogtheme, $blogstyle;
     ZBlogException::SetErrorHook();
     //基本配置加载到$zbp内
     $this->version =& $blogversion;
     $this->option =& $option;
     $this->lang =& $lang;
     $this->path =& $blogpath;
     $this->host =& $bloghost;
     $this->cookiespath =& $cookiespath;
     $this->usersdir =& $usersdir;
     $this->table =& $table;
     $this->datainfo =& $datainfo;
     if (trim($this->option['ZC_BLOG_CLSID']) == '') {
         $this->option['ZC_BLOG_CLSID'] = GetGuid();
     }
     $this->guid =& $this->option['ZC_BLOG_CLSID'];
     $this->title =& $blogtitle;
     $this->name =& $blogname;
     $this->subname =& $blogsubname;
     $this->theme =& $blogtheme;
     $this->style =& $blogstyle;
     $this->managecount = $this->option['ZC_MANAGE_COUNT'];
     $this->pagebarcount = $this->option['ZC_PAGEBAR_COUNT'];
     $this->searchcount = $this->option['ZC_SEARCH_COUNT'];
     $this->displaycount = $this->option['ZC_DISPLAY_COUNT'];
     $this->commentdisplaycount = $this->option['ZC_COMMENTS_DISPLAY_COUNT'];
     $this->cache = new Metas();
 }
All Usage Examples Of ZBlogException::SetErrorHook