Configuring error messages in the face of an object

Source: Internet
Author: User

Whether the error message is displayed:

Display Error: Display_errors=on

Masking error message: Display_errors=off

Display of error message levels:

Error_reporting=e_all (All)

Error_reporting=e_all & ~e_noctice (except for noctice errors are shown)

Exceptions are special errors, exception handling using Try ..... Cath ..... Block.

constant description
2 E_warning A non-fatal run-time error. Script execution is not paused.
8 E_notice

Run-time notice.

The script discovers that an error may have occurred, but it may also occur when the script is running correctly.

256 E_user_error A fatal user-generated error. This is similar to the e_error that programmers use to set the PHP function Trigger_error ().
512 E_user_warning A non-fatal user-generated warning. This is similar to the e_warning that programmers use to set the PHP function Trigger_error ().
1024 E_user_notice User-generated notifications. This is similar to the e_notice that programmers use to set the PHP function Trigger_error ().
4096 E_recoverable_error A fatal error that can be caught. Similar to E_error, but can be captured by user-defined handlers. (see Set_error_handler ())
8191 E_all

All errors and warnings, except level e_strict.

(In PHP 6.0,e_strict is part of E_all)

Configuring error messages in the face of an object

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.