mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Don't silence fatal errors with @
This commit is contained in:
parent
b65435c986
commit
a302d11610
15 changed files with 53 additions and 19 deletions
|
@ -39,4 +39,9 @@
|
|||
#define E_ALL (E_ERROR | E_WARNING | E_PARSE | E_NOTICE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE | E_RECOVERABLE_ERROR | E_DEPRECATED | E_USER_DEPRECATED | E_STRICT)
|
||||
#define E_CORE (E_CORE_ERROR | E_CORE_WARNING)
|
||||
|
||||
/* Fatal errors that are ignored by the silence operator */
|
||||
#define E_FATAL_ERRORS (E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR | E_PARSE)
|
||||
|
||||
#define E_HAS_ONLY_FATAL_ERRORS(mask) !((mask) & ~E_FATAL_ERRORS)
|
||||
|
||||
#endif /* ZEND_ERRORS_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue