Ejemplo n.º 1
0
 /**
  * 例外エラーページの表示
  *
  * @param string $debugMsg デバッグ用のメッセージ
  * @return void
  */
 function sfDispException($debugMsg = null)
 {
     require_once CLASS_EX_REALDIR . 'page_extends/error/LC_Page_Error_SystemError_Ex.php';
     $objPage = new LC_Page_Error_SystemError_Ex();
     register_shutdown_function(array($objPage, 'destroy'));
     $objPage->init();
     if (!is_null($debugMsg)) {
         $objPage->addDebugMsg($debugMsg);
     }
     if (function_exists("debug_backtrace")) {
         $objPage->backtrace = debug_backtrace();
     }
     GC_Utils_Ex::gfPrintLog($objPage->sfGetErrMsg());
     $objPage->process();
     exit;
 }
Ejemplo n.º 2
-1
 /**
  * エラー画面を表示する
  *
  * @param  string|null $errstr エラーメッセージ
  * @return void
  */
 public static function displaySystemError($errstr = null)
 {
     SC_Helper_HandleError_Ex::$under_error_handling = true;
     ob_clean();
     // 絵文字変換・除去フィルターが有効か評価する。
     $loaded_ob_emoji = false;
     $arrObs = ob_get_status(true);
     foreach ($arrObs as $arrOb) {
         if ($arrOb['name'] === 'SC_MobileEmoji::handler') {
             $loaded_ob_emoji = true;
             break;
         }
     }
     // 絵文字変換・除去フィルターが無効で、利用できる場合、有効にする。
     if (!$loaded_ob_emoji && class_exists('SC_MobileEmoji')) {
         ob_start(array('SC_MobileEmoji', 'handler'));
     }
     require_once CLASS_EX_REALDIR . 'page_extends/error/LC_Page_Error_SystemError_Ex.php';
     $objPage = new LC_Page_Error_SystemError_Ex();
     $objPage->init();
     if (isset($errstr)) {
         $objPage->addDebugMsg($errstr);
     }
     $objPage->process();
 }