1 /* 2 +----------------------------------------------------------------------+ 3 | Zend Engine | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) Zend Technologies Ltd. (http://www.zend.com) | 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 2.00 of the Zend license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.zend.com/license/2_00.txt. | 11 | If you did not receive a copy of the Zend license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@zend.com so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 15 | Authors: Andi Gutmans <andi@php.net> | 16 | Zeev Suraski <zeev@php.net> | 17 +----------------------------------------------------------------------+ 18 */ 19 20 #ifndef ZEND_ERRORS_H 21 #define ZEND_ERRORS_H 22 23 #define E_ERROR (1<<0L) 24 #define E_WARNING (1<<1L) 25 #define E_PARSE (1<<2L) 26 #define E_NOTICE (1<<3L) 27 #define E_CORE_ERROR (1<<4L) 28 #define E_CORE_WARNING (1<<5L) 29 #define E_COMPILE_ERROR (1<<6L) 30 #define E_COMPILE_WARNING (1<<7L) 31 #define E_USER_ERROR (1<<8L) 32 #define E_USER_WARNING (1<<9L) 33 #define E_USER_NOTICE (1<<10L) 34 // TODO: Remove in PHP 9.0 35 #define E_STRICT (1<<11L) 36 #define E_RECOVERABLE_ERROR (1<<12L) 37 #define E_DEPRECATED (1<<13L) 38 #define E_USER_DEPRECATED (1<<14L) 39 40 /* Indicates that this usually fatal error should not result in a bailout */ 41 #define E_DONT_BAIL (1<<15L) 42 43 #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) 44 #define E_CORE (E_CORE_ERROR | E_CORE_WARNING) 45 46 /* Fatal errors that are ignored by the silence operator */ 47 #define E_FATAL_ERRORS (E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR | E_PARSE) 48 49 #define E_HAS_ONLY_FATAL_ERRORS(mask) !((mask) & ~E_FATAL_ERRORS) 50 51 #endif /* ZEND_ERRORS_H */ 52