Skip to content

Commit

Permalink
fix(framework/handles/ErrorHandle): set error_reporting to 0 🚑
Browse files Browse the repository at this point in the history
  • Loading branch information
TIGERB committed Jan 6, 2019
1 parent 7eda2eb commit 3c14be4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README-CN.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<p align="center"><img width="60%" src="http://cdn.tigerb.cn/logo.png"><p>
<p align="center"><img width="50%" src="http://cdn.tigerb.cn/logo.png"><p>

<p align="center">
<a href="https://github.com/TIGERB/easy-php/releases"><img src="https://api.travis-ci.org/TIGERB/easy-php.svg?branch=master" alt="Build Status"></a>
<a href="https://github.com/TIGERB/easy-php/releases"><img src="https://codecov.io/gh/TIGERB/easy-php/branch/master/graph/badge.svg" alt="Code Coverage"></a>
<a href="https://github.com/TIGERB/easy-php/releases"><img src="https://img.shields.io/badge/version-0.8.4-lightgrey.svg" alt="Version"></a>
<a href="https://github.com/TIGERB/easy-php/releases"><img src="https://img.shields.io/badge/version-0.8.5-lightgrey.svg" alt="Version"></a>
<a href="https://github.com/TIGERB/easy-php/releases"><img src="https://img.shields.io/badge/php-5.4%2B-blue.svg" alt="PHP Version"></a>
<a href="https://easy-framework.github.io/easy-env/"><img src="https://img.shields.io/badge/docker%20env-support-green.svg" alt="Docker env"></a>
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/cocoapods/l/AFNetworking.svg" alt="License"></a>
</p>

<p align="center"> 从0开始构建一个属于你自己的PHP框架 <p>

<p align="center"><img width="50%" src="http://cdn.tigerb.cn/wechat-blog-qrcode.jpg"><p>
<p align="center"><img width="36%" src="http://cdn.tigerb.cn/wechat-blog-qrcode.jpg"><p>

<p align="center"> <a href="./README.md">英文版</a> <p>

Expand Down
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
<p align="center"><img width="60%" src="http://cdn.tigerb.cn/logo.png"><p>
<p align="center"><img width="50%" src="http://cdn.tigerb.cn/logo.png"><p>

<p align="center">
<a href="https://github.com/TIGERB/easy-php/releases"><img src="https://api.travis-ci.org/TIGERB/easy-php.svg?branch=master" alt="Build Status"></a>
<a href="https://github.com/TIGERB/easy-php/releases"> <img src="https://codecov.io/gh/TIGERB/easy-php/branch/master/graph/badge.svg" alt="Code Coverage"></a>
<a href="https://github.com/TIGERB/easy-php/releases"><img src="https://img.shields.io/badge/version-0.8.4-lightgrey.svg" alt="Version"></a>
<a href="https://github.com/TIGERB/easy-php/releases"><img src="https://codecov.io/gh/TIGERB/easy-php/branch/master/graph/badge.svg" alt="Code Coverage"></a>
<a href="https://github.com/TIGERB/easy-php/releases"><img src="https://img.shields.io/badge/version-0.8.5-lightgrey.svg" alt="Version"></a>
<a href="https://github.com/TIGERB/easy-php/releases"><img src="https://img.shields.io/badge/php-5.4%2B-blue.svg" alt="PHP Version"></a>
<a href="https://easy-framework.github.io/easy-env/"><img src="https://img.shields.io/badge/docker%20env-support-green.svg" alt="Docker env"></a>
<a href="#backers" alt="sponsors on Open Collective"><img src="https://opencollective.com/easy-php/backers/badge.svg" /></a> <a href="#sponsors" alt="Sponsors on Open Collective"><img src="https://opencollective.com/easy-php/sponsors/badge.svg" /></a>
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/cocoapods/l/AFNetworking.svg" alt="License"></a>

</p>

<p align="center"> A Faster Lightweight Full-Stack PHP Framework <p>

<p align="center"><img width="50%" src="http://cdn.tigerb.cn/wechat-blog-qrcode.jpg"><p>
<p align="center"><img width="30%" src="http://cdn.tigerb.cn/wechat-blog-qrcode.jpg"><p>

<p align="center"> <a href="./README-CN.md">中文版</a> <p>

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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": [{
Expand Down
6 changes: 5 additions & 1 deletion framework/handles/ErrorHandle.php
Original file line number Diff line number Diff line change
Expand Up @@ -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&register_shutdown_function::error_get_last
set_error_handler([$this, 'errorHandler']);

register_shutdown_function([$this, 'shutdown']);
}

Expand Down

0 comments on commit 3c14be4

Please sign in to comment.