Set the error log report level in
. In some cases, some errors cannot be displayed because of the incorrect error level setting. You must understand the errors for this function. Log report level, including the following levels:
PHP error_reporting is used to set the level of error message reporting. The parameter level is an integer bit mask (bitmask), see the table below.
Mask value represents name
1 E_ERROR
2 E_WARNING
4 E_PARSE
8 E_NOTICE
16 E_CORE_ERROR
32 E_CORE_WARNING
0 Close error Report
E_NOTICE indicates that the normal situation is not recorded, and is only used when the program has an error, such as trying to access a non-existent variable, or calling the stat() function to view a non-existent file.
E_WARNING is usually displayed but does not interrupt program execution. This is useful for debugging. For example: calling ereg() with the problematic regular notation.
E_ERROR is usually displayed and will interrupt program execution. This means that memory configuration or other errors cannot be traced using this mask.
E_PARSE Parses errors from the syntax.
E_CORE_ERROR Like E_ERROR, but excludes errors caused by the PHP core.
E_CORE_WARNING Like E_WARNING, but does not include PHP core error warnings.
The above is the detailed usage of PHP error_reporting.