示例#1
0
文件: CxBug.php 项目: cloklo/CxWoole
 private static function _clear()
 {
     self::$sql = null;
     self::$log = null;
     self::$start = null;
     self::$time = null;
     self::$server = null;
     self::$exception = null;
     self::$session = null;
     //self::$show;
     //self::$key;
 }
示例#2
0
 private function _showError($e)
 {
     $this->error and call_user_func($this->error, $e);
     if (DEBUG) {
         CxBug::exception($e);
         if (ob_get_level() > 0) {
             ob_clean();
         }
         ob_start();
         include PATH_CXMVC . DIRECTORY_SEPARATOR . 'tbl' . DIRECTORY_SEPARATOR . 'exception.tbl.php';
         $error = ob_get_contents();
         if ($error) {
             $this->response->write($error);
             ob_clean();
         }
     }
 }