How many levels does PHP have for error levels?
Reply content:
How many levels does PHP have for error levels?
1 E_error Fatal Run-time error (it will prevent script execution)
2 e_warning Runtime Warning (non-fatal error)
4 E_parse Parsing error
8 E_notice Note (things may or may not be a problem)
E_user_error User generated error message, generated by the Trigger_error () function
E_user_warning user generated warning, generated by the Trigger_error () function
1024x768 E_user_notice User generated note, generated by the Trigger_error () function
2048 e_strict recommendations for compatibility and interoperability
8191 E_all all errors, warnings and suggestions
1 e_error Fatal run-time errors. Errors that can is recovered from. Execution of the script is halted
2 e_warning non-fatal run-time errors. Execution of the script is not halted
4 e_parse compile-time PARSE errors. Parse errors should only being generated by the parser
8 E_notice Run-time Notices. The script found something that might is an error, but could also happen when running a script normally
E_core_error Fatal errors at PHP startup. This is a e_error in the PHP core
e_core_warning non-fatal errors at PHP startup. This is a e_warning in the PHP core
E_compile_error Fatal compile-time errors. This is a e_error generated by the Zend Scripting Engine
E_compile_warning non-fatal compile-time errors. This is a e_warning generated by the Zend Scripting Engine
E_user_error Fatal user-generated ERROR. This is a e_error set by the programmer using the PHP function Trigger_error ()
E_user_warning non-fatal user-generated WARNING. This is a e_warning set by the programmer using the PHP function Trigger_error ()
1024x768 E_user_notice user-generated NOTICE. This is a e_notice set by the programmer using the PHP function Trigger_error ()
2048 e_strict Run-time Notices. PHP suggest changes to your code to help interoperability and compatibility of the code
4096 E_recoverable_error catchable fatal ERROR. This is a e_error, but can being caught by a user defined handle (see also Set_error_handler ())
8191 E_all all errors and warnings, except level e_strict (E_strict'll be part of E_all as of PHP 6.0)
Http://www.w3school.com.cn/php/func_error_reporting.asp