com php-src: remove useless condition (same as headers_list ()): sapi/cli/php_cli_server.c
| From: | Anatol Belski | Date: | Fri, 13 Feb 2015 10:21:49 +0000 |
| Subject: | com php-src: remove useless condition (same as headers_list ()): sapi/cli/php_cli_server.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84855@lists.php.net to get a copy of this message | ||
Commit: 5d8ebcc73c4f873a6a38189ce5bd99ccf863c665
Author: Anatol Belski <ab@php.net> Fri, 13 Feb 2015 10:47:34 +0100
Parents: bb2091704922599c88cc18e17931004f7a670600
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5d8ebcc73c4f873a6a38189ce5bd99ccf863c665
Log:
remove useless condition (same as headers_list())
Changed paths:
M sapi/cli/php_cli_server.c
Diff:
diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c
index 64acd9a..6315cd8 100644
--- a/sapi/cli/php_cli_server.c
+++ b/sapi/cli/php_cli_server.c
@@ -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);
}