]> granicus.if.org Git - php/commitdiff
Remove always true condition
authorAnatol Belski <ab@php.net>
Fri, 16 Feb 2018 14:22:46 +0000 (15:22 +0100)
committerAnatol Belski <ab@php.net>
Fri, 16 Feb 2018 14:44:42 +0000 (15:44 +0100)
sapi/cgi/cgi_main.c

index e8d3601923af51f73e481b142095a9b54fe07b98..bdf6d34f0b7607d4d1a4edcae66c21739f67d5ba 100644 (file)
@@ -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