mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
- MFH Fix error mode handling
This commit is contained in:
parent
ed7ed1189b
commit
f7776502b5
@ -689,8 +689,10 @@ static void php_error_cb(int type, const char *error_filename, const uint error_
|
||||
/* according to error handling mode, suppress error, throw exception or show it */
|
||||
if (PG(error_handling) != EH_NORMAL) {
|
||||
switch (type) {
|
||||
case E_ERROR:
|
||||
case E_CORE_ERROR:
|
||||
case E_COMPILE_ERROR:
|
||||
case E_USER_ERROR:
|
||||
case E_PARSE:
|
||||
/* fatal errors are real errors and cannot be made exceptions */
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user