Skip to content

Commit

Permalink
修改日志报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lovefc committed Mar 25, 2022
1 parent d3d5e8c commit 853907b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions FC/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
// 获取错误行号处的代码
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
````

### 使用方法
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 853907b

Please sign in to comment.