summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2018-02-16 15:22:46 +0100
committerAnatol Belski <ab@php.net>2018-02-16 15:44:42 +0100
commit535497cb97c678fcf286571a62d57d94f9f35de0 (patch)
tree3ca81f9fa3f7b66b24da1d6667c337659d117bb3
parent7761c819bff69b5b7a123feccb3ea75ed3d22cb2 (diff)
downloadphp-git-535497cb97c678fcf286571a62d57d94f9f35de0.tar.gz
Remove always true condition
-rw-r--r--sapi/cgi/cgi_main.c6
1 files 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