From: Anatol Belski Date: Fri, 16 Feb 2018 14:22:46 +0000 (+0100) Subject: Remove always true condition X-Git-Tag: php-7.3.0alpha1~399 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=535497cb97c678fcf286571a62d57d94f9f35de0;p=php Remove always true condition --- 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