From 3c14be490dd2661fe61446b3904687d6a25bd666 Mon Sep 17 00:00:00 2001 From: TIGERB Date: Sun, 6 Jan 2019 22:35:09 +0800 Subject: [PATCH] fix(framework/handles/ErrorHandle): set error_reporting to 0 :ambulance: --- README-CN.md | 6 +++--- README.md | 13 ++++++++----- composer.json | 4 ++-- framework/handles/ErrorHandle.php | 6 +++++- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/README-CN.md b/README-CN.md index 0c8fe5a..28b0228 100644 --- a/README-CN.md +++ b/README-CN.md @@ -1,9 +1,9 @@ -

+

Build Status Code Coverage -Version +Version PHP Version Docker env License @@ -11,7 +11,7 @@

从0开始构建一个属于你自己的PHP框架

-

+

英文版 

diff --git a/README.md b/README.md index 533c8b7..f872b00 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,18 @@ -

+

Build Status - Code Coverage -Version +Code Coverage +Version PHP Version Docker env - License

A Faster Lightweight Full-Stack PHP Framework

-

+

中文版 

@@ -894,6 +893,10 @@ project address: [https://github.com/TIGERB/easy-php](https://github.com/TIGERB/ # DONE +- v0.8.5(2018/01/06) + - fix error_report + - fix + - v0.8.1(2018/06/24) - use easy log - add folder bin diff --git a/composer.json b/composer.json index e6b2cf2..849c383 100644 --- a/composer.json +++ b/composer.json @@ -1,9 +1,9 @@ { "name": "tigerb/easy-php", "description": "A Faster Lightweight Full-Stack PHP Framework", - "version": "0.8.4", + "version": "0.8.5", "type": "framework", - "homepage": "http://php.tiegrb.cn/", + "homepage": "http://easy-php.tigerb.cn/", "license": "MIT", "minimum-stability": "stable", "authors": [{ diff --git a/framework/handles/ErrorHandle.php b/framework/handles/ErrorHandle.php index efbe6e2..ec9a3e3 100644 --- a/framework/handles/ErrorHandle.php +++ b/framework/handles/ErrorHandle.php @@ -57,8 +57,12 @@ public function register(App $app) { $this->mode = $app->runningMode; + // do not report the error by php self + // E_ERROR | E_WARNING | E_PARSE | E_NOTICE | E_ALL + error_reporting(0); + + // report the by the set_error_handler®ister_shutdown_function::error_get_last set_error_handler([$this, 'errorHandler']); - register_shutdown_function([$this, 'shutdown']); }