stop() 공개 정적인 메소드

程序执行完毕,打印CmlPHP运行信息
public static stop ( )
예제 #1
0
파일: Cml.php 프로젝트: dlpc/cmlphp
 /**
  * 程序中并输出调试信息
  *
  */
 public static function cmlStop()
 {
     Plugin::hook('cml.before_cml_stop');
     //输出Debug模式的信息
     if ($GLOBALS['debug']) {
         header('Content-Type:text/html; charset=' . Config::get('default_charset'));
         Debug::stop();
     } else {
         $deBugLogData = dump('', 1);
         if (!empty($deBugLogData)) {
             require CML_PATH . DIRECTORY_SEPARATOR . 'Cml' . DIRECTORY_SEPARATOR . 'ConsoleLog.php';
         }
         CML_OB_START && ob_end_flush();
         exit;
     }
 }
예제 #2
0
파일: Cml.php 프로젝트: linhecheng/cmlphp
 /**
  * 程序中并输出调试信息
  *
  */
 public static function cmlStop()
 {
     //输出Debug模式的信息
     if (self::$debug) {
         header('Content-Type:text/html; charset=' . Config::get('default_charset'));
         Debug::stop();
     } else {
         $deBugLogData = dump('', 1);
         if (!empty($deBugLogData)) {
             Config::get('dump_use_php_console') ? dumpUsePHPConsole($deBugLogData) : Cml::requireFile(CML_CORE_PATH . DIRECTORY_SEPARATOR . 'ConsoleLog.php', ['deBugLogData' => $deBugLogData]);
         }
         CML_OB_START && ob_end_flush();
     }
     exit;
 }
예제 #3
0
파일: Cml.php 프로젝트: hongweipeng/cmlphp
 /**
  * 程序中并输出调试信息
  *
  */
 public static function cmlStop()
 {
     //输出Debug模式的信息
     if ($GLOBALS['debug']) {
         header('Content-Type:text/html; charset=' . Config::get('default_charset'));
         Debug::stop();
     } else {
         $deBugLogData = dump('', 1);
         if (!empty($deBugLogData)) {
             Config::get('dump_use_php_console') ? \Cml\dumpUsePHPConsole($deBugLogData) : (require CML_PATH . DIRECTORY_SEPARATOR . 'Cml' . DIRECTORY_SEPARATOR . 'ConsoleLog.php');
         }
         CML_OB_START && ob_end_flush();
         exit;
     }
 }