]> granicus.if.org Git - php/commitdiff
remove useless condition (same as headers_list())
authorAnatol Belski <ab@php.net>
Fri, 13 Feb 2015 09:47:34 +0000 (10:47 +0100)
committerAnatol Belski <ab@php.net>
Fri, 13 Feb 2015 10:21:49 +0000 (11:21 +0100)
sapi/cli/php_cli_server.c

index 64acd9a682d9311b12d9cc914bbe6693fb8f6dd8..6315cd8ae532f71f11d4307dde111e981cfc3a97 100644 (file)
@@ -419,9 +419,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);
 }