]> granicus.if.org Git - php/commitdiff
remove useless condition
authorAnatol Belski <ab@php.net>
Wed, 11 Feb 2015 10:19:19 +0000 (11:19 +0100)
committerAnatol Belski <ab@php.net>
Wed, 11 Feb 2015 10:46:29 +0000 (11:46 +0100)
sapi/cgi/cgi_main.c

index a0bba17f06b1dcf56d388de981cf9e7a5df4896d..6b934085680f7d701d756aefe62deda4e582da4d 100644 (file)
@@ -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);
 }