From: Dmitry Stogov Date: Thu, 18 Oct 2007 13:11:46 +0000 (+0000) Subject: Fixed bug #42722 (display_errors setting ignored for E_PARSE and HTTP 500 page) X-Git-Tag: RELEASE_1_3_1~830 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8039433291bd4fa36c897e93047d1ebd538dadbb;p=php Fixed bug #42722 (display_errors setting ignored for E_PARSE and HTTP 500 page) --- diff --git a/main/main.c b/main/main.c index 39ff698ffa..c4ea341601 100644 --- a/main/main.c +++ b/main/main.c @@ -976,7 +976,8 @@ static void php_error_cb(int type, const char *error_filename, const uint error_ case E_USER_ERROR: EG(exit_status) = 255; if (module_initialized) { - if (!SG(headers_sent) && + if (!PG(display_errors) && + !SG(headers_sent) && SG(sapi_headers).http_response_code == 200 ) { sapi_header_line ctr = {0};