PHP options and Information function library: error_reporting

Source: Internet
Author: User
Keywords error_reporting php option php Chinese function manual information function library
Tags aliyun default error error_reporting function function library html http

Error_reporting

(PHP3, PHP4)

error_reporting---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; set PHP error return level

Syntax: int error_reporting ([int level])

Description:

Set the error return level for PHP and send back the old level. The error return level is a bit-hood with the following values:

Value internal Name 1 E_error 2 e_warning 4 e_parse 8 E_notice e_core_error e_core_warning

E_error: The default is to list the errors and terminate the execution of the program after the function returns

E_warning: The default is to list warnings without disrupting program execution

E_parse: Parsing grammatical errors

E_notice: The default is to list the notes and point out where the program conflicts

E_core_error: It's like e_error, the difference is that it's generated by the core of PHP, and the function will not produce this type of error

E_core_warning: It's like e_warning, the difference is that it's generated by the core of PHP, and the function will not produce this type of error

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.