php
PHP Error Levels
Bitmask constants used in error_reporting() and PHP's error handler, representing the severity and origin of a PHP error.
16 codes
references php.net/manual/en/errorfunc.constants.php
· All codes 16 codes
- E_ALL All Errors Bitmask covering all supported error levels. Passing E_ALL to error_reporting() enables reporting of every error type.
- E_COMPILE_ERROR Compile-time Fatal Error Fatal compile-time error generated by the Zend scripting engine. Similar to E_ERROR but produced during script compilation rather than execution.
- E_COMPILE_WARNING Compile-time Warning Non-fatal compile-time warning generated by the Zend scripting engine during script compilation.
- E_CORE_ERROR Core Fatal Error Fatal error generated by PHP's core during startup. Similar to E_ERROR but originates in the PHP engine itself rather than user code.
- E_CORE_WARNING Core Warning Non-fatal warning generated by PHP's core during startup. Similar to E_WARNING but originates in the PHP engine itself.
- E_DEPRECATED Deprecation Notice Warning about code that uses a feature which will not work in a future version of PHP.
- E_ERROR Fatal Runtime Error Fatal run-time error. Execution stops and a backtrace is produced. Cannot be recovered from within the running script.
- E_NOTICE Runtime Notice Run-time notice. Indicates code that may work correctly but could also indicate a bug, such as accessing an undefined variable.
- E_PARSE Parse Error Compile-time parse error. Generated by the parser when a script contains a syntax error and cannot be compiled.
- E_RECOVERABLE_ERROR Recoverable Fatal Error Catchable fatal error. Indicates a dangerous error occurred but did not leave the engine in an unstable state. If no user handler catches it, execution stops.
- E_STRICT Strict Standards Suggestions for code interoperability and forward compatibility. Enabled PHP to recommend changes to ensure best practices. Removed in PHP 9.
- E_USER_DEPRECATED User Deprecation Notice User-generated deprecation notice, triggered by calling trigger_error() with E_USER_DEPRECATED.
- E_USER_ERROR User Fatal Error User-generated fatal error, triggered by calling trigger_error() with E_USER_ERROR. Execution stops unless a custom error handler recovers from it.
- E_USER_NOTICE User Notice User-generated notice, triggered by calling trigger_error() with E_USER_NOTICE. Execution continues.
- E_USER_WARNING User Warning User-generated warning, triggered by calling trigger_error() with E_USER_WARNING. Execution continues.
- E_WARNING Runtime Warning Non-fatal run-time warning. Execution continues. Typically indicates incorrect usage of a function or an unexpected condition.