From 853907b0339991859d253d8763d39a9e05191eb6 Mon Sep 17 00:00:00 2001 From: lovefc Date: Fri, 25 Mar 2022 13:18:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A5=E5=BF=97=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FC/Log.php | 4 ++-- README.md | 4 ++-- composer.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/FC/Log.php b/FC/Log.php index 596aecf..06ab84e 100644 --- a/FC/Log.php +++ b/FC/Log.php @@ -45,7 +45,7 @@ public static function Error() } if (IS_AJAX === true || IS_CLI === true) { if ($lasterror) { - ob_clean(); + if(ob_get_length()) ob_clean(); $err = PHP_EOL . 'Type:' . $lasterror['type'] . PHP_EOL; $err .= 'Line:' . $lasterror['line'] . PHP_EOL; $err .= 'File:' . $lasterror['file'] . PHP_EOL; @@ -56,7 +56,7 @@ public static function Error() exit; } if ($lasterror) { - ob_clean(); + if(ob_get_length()) ob_clean(); // 获取程序执行结束的时间 $lasterror['run_time'] = round(microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'], 5); // 获取错误行号处的代码 diff --git a/README.md b/README.md index 704214a..d26465d 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,13 @@ composer.json ```` { "require": { - "lovefc/fcphp": "6.2.3" + "lovefc/fcphp": "6.2.4" } } ```` ```` -composer require lovefc/fcphp:6.2.3 +composer require lovefc/fcphp:6.2.4 ```` ### 使用方法 diff --git a/composer.json b/composer.json index 1c0a084..e200f80 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "lovefc/fcphp", "description": "FCPHP框架", "keywords": ["php","fcphp","php框架","framework"], - "version": "6.2.3", + "version": "6.2.4", "homepage": "https://gitee.com/lovefc/fcphp6.git", "license": "MIT", "require": {