From: Anatol Belski Date: Wed, 11 Feb 2015 10:19:19 +0000 (+0100) Subject: remove useless condition X-Git-Tag: PRE_PHP7_EREG_MYSQL_REMOVALS~189 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12a42433b27bd2f3c28a496269610fe53c567310;p=php remove useless condition --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index a0bba17f06..6b93408568 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -1668,9 +1668,6 @@ PHP_FUNCTION(apache_response_headers) /* {{{ */ return; } - if (!&SG(sapi_headers).headers) { - RETURN_FALSE; - } array_init(return_value); zend_llist_apply_with_argument(&SG(sapi_headers).headers, (llist_apply_with_arg_func_t)add_response_header, return_value); }