There are several levels of PHP errors

Source: Internet
Author: User
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

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.