From 535497cb97c678fcf286571a62d57d94f9f35de0 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Fri, 16 Feb 2018 15:22:46 +0100 Subject: [PATCH] Remove always true condition --- sapi/cgi/cgi_main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index e8d3601923..bdf6d34f0b 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -2417,10 +2417,8 @@ consult the installation file that came with this distribution, or visit \n\ php_module_shutdown(); return FAILURE; } - if (no_headers) { - SG(headers_sent) = 1; - SG(request_info).no_headers = 1; - } + SG(headers_sent) = 1; + SG(request_info).no_headers = 1; #if ZEND_DEBUG php_printf("PHP %s (%s) (built: %s %s) (DEBUG)\nCopyright (c) 1997-2018 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version()); #else -- 2.40.0