1999-04-08 02:10:10 +08:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Zend Engine |
|
|
|
|
+----------------------------------------------------------------------+
|
2019-01-30 17:23:29 +08:00
|
|
|
| Copyright (c) Zend Technologies Ltd. (http://www.zend.com) |
|
1999-04-08 02:10:10 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2001-12-11 23:16:21 +08:00
|
|
|
| This source file is subject to version 2.00 of the Zend license, |
|
2015-01-03 17:22:58 +08:00
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
2003-06-11 04:04:29 +08:00
|
|
|
| available through the world-wide-web at the following url: |
|
2001-12-11 23:16:21 +08:00
|
|
|
| http://www.zend.com/license/2_00.txt. |
|
1999-07-16 22:58:16 +08:00
|
|
|
| If you did not receive a copy of the Zend license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@zend.com so we can mail you a copy immediately. |
|
1999-04-08 02:10:10 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2018-11-01 23:20:07 +08:00
|
|
|
| Authors: Andi Gutmans <andi@php.net> |
|
|
|
|
| Zeev Suraski <zeev@php.net> |
|
1999-04-08 02:10:10 +08:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
2000-07-03 07:54:19 +08:00
|
|
|
#ifndef ZEND_ERRORS_H
|
|
|
|
#define ZEND_ERRORS_H
|
1999-04-08 02:10:10 +08:00
|
|
|
|
1999-07-20 00:17:40 +08:00
|
|
|
#define E_ERROR (1<<0L)
|
|
|
|
#define E_WARNING (1<<1L)
|
|
|
|
#define E_PARSE (1<<2L)
|
|
|
|
#define E_NOTICE (1<<3L)
|
|
|
|
#define E_CORE_ERROR (1<<4L)
|
|
|
|
#define E_CORE_WARNING (1<<5L)
|
|
|
|
#define E_COMPILE_ERROR (1<<6L)
|
|
|
|
#define E_COMPILE_WARNING (1<<7L)
|
2000-04-19 21:15:13 +08:00
|
|
|
#define E_USER_ERROR (1<<8L)
|
|
|
|
#define E_USER_WARNING (1<<9L)
|
|
|
|
#define E_USER_NOTICE (1<<10L)
|
2003-11-18 17:25:04 +08:00
|
|
|
#define E_STRICT (1<<11L)
|
2006-05-15 02:50:02 +08:00
|
|
|
#define E_RECOVERABLE_ERROR (1<<12L)
|
2008-02-24 01:06:22 +08:00
|
|
|
#define E_DEPRECATED (1<<13L)
|
2008-07-21 17:41:00 +08:00
|
|
|
#define E_USER_DEPRECATED (1<<14L)
|
1999-04-08 02:10:10 +08:00
|
|
|
|
2019-10-10 20:14:36 +08:00
|
|
|
/* Indicates that this usually fatal error should not result in a bailout */
|
|
|
|
#define E_DONT_BAIL (1<<15L)
|
|
|
|
|
2011-07-24 06:07:22 +08:00
|
|
|
#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)
|
1999-04-08 02:10:10 +08:00
|
|
|
#define E_CORE (E_CORE_ERROR | E_CORE_WARNING)
|
|
|
|
|
2018-11-27 04:20:03 +08:00
|
|
|
/* 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)
|
|
|
|
|
2000-07-03 07:54:19 +08:00
|
|
|
#endif /* ZEND_ERRORS_H */
|