Php has a 500 error in fatalerror.

Source: Internet
Author: User
Tags php error php error log blank page
: This article mainly introduces php 500 in fatalerror. if you are interested in the PHP Tutorial, refer to it. Some time ago, the php version on the test server was upgraded. later, debugging was performed during development. During access, a blank page was found. after packet capture, the http code was 500, A fatal error is recorded in the php error log, which is a bit confusing, because in the previous test machine, even if it is a fatal error, there will be output on the page. The http code is 200, instead of 500, I did a local test and found that this was indeed the case. why is the fatal error on the test server returning the http code of 500, what happens if an error is returned locally and http code 200 is returned?
After comparing the two configuration files, it is found that display_error is set to off on the test server, and the local display_error is set to on, the answer is clear:
When display_error is on, an error is output and 200 is returned.
If display_error is off, no error is output and 500 is returned.

The above introduces the 500 error in php under fatal error, including some content, and hope to be helpful to friends who are interested in PHP tutorials.

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.