PHP Error Reporting

Source: Internet
Author: User
Tags coding standards php error php error reporting

; This directive controls whether or not andwherePHP would output errors, notices and warnings too. Error Output isvery useful during development, but; it could be very dangerousinchproduction environments. Depending on the code; Which istriggering the error, sensitive information could potentially leak; outof your application such asdatabase usernames and passwords or worse.; It's recommended that errors is logged on production servers rather thanHave the errors sent to STDOUT.;   Possible Values:; Off=Don't display any errors; StdErr= Display errors to STDERR (affects only cgi/cli binaries!); On or stdout=Display errors to STDOUT; Default Value:on; Development Value:on; Production Value:off; http://php.net/display-errorsDisplay_errors =on
; e_user_deprecated-user-generated deprecation warnings;   Common Values:; E_all& ~e_notice (Show all errors, except fornotices and coding standards warnings.); E_all& ~e_notice | E_strict (Show all errors, except fornotices); E_compile_error| e_recoverable_error| e_error|E_core_error (Show only errors); E_all|e_strict (Show all errors, warnings and notices including coding standards.); Default Value:e_all& ~E_notice; Development Value:e_all|e_strict; Production Value:e_all& ~e_deprecated; http://php.net/error-reportingerror_reporting = E_all | E_strict

Need to configure 2 environments

PHP Error Reporting

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.