Php error display: Relationship between display_errors of php. ini and error_reporting () in php Program

Source: Internet
Author: User
Tags php error
1. If there is a semicolon (not enabled) or display_errorsOff in front of display_errors in php. ini, is it meaningless to set the php error display using the display_errors () function in the php program? 2. If error_reporting... 1 in php. ini, if display_errors in php. ini contains a semicolon (not enabled) or display_errors = Off, So the php program uses display_errors()Is it meaningless to set the php error display function?

2. If the error display level of error_reporting in php. ini is dependent on this filedisplay_errors, That isdisplay_errorsIsonerror_reportingIs the setting meaningful?

3. If the error level is set for error_reporting in php. ini, the php program also useserror_reporting()If the function sets the php error display level, does it conflict? If no conflict exists, who has a higher priority?

Reply content:

1. If display_errors in php. ini is preceded by a semicolon (not enabled) ordisplay_errors = Off, So the php program usesdisplay_errors()Is it meaningless to set the php error display function?

2. If the error display level of error_reporting in php. ini is dependent on this filedisplay_errors, That isdisplay_errorsIsonerror_reportingIs the setting meaningful?

3. If the error level is set for error_reporting in php. ini, the php program also useserror_reporting()If the function sets the php error display level, does it conflict? If no conflict exists, who has a higher priority?

A:

Function priority is high. Because the configuration fileStartAnd the function isRuntime.

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.