summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli_server.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-02-13 18:27:10 +0800
committerXinchen Hui <laruence@php.net>2015-02-13 18:27:10 +0800
commit627a2137617712696137a3b1791b5eeb25a56302 (patch)
tree1b87f7901c06206515320ea48aa119293bbc9457 /sapi/cli/php_cli_server.c
parente5d8a14239b03c065b1a9df3ad35ef532063f701 (diff)
parent5d8ebcc73c4f873a6a38189ce5bd99ccf863c665 (diff)
downloadphp-git-627a2137617712696137a3b1791b5eeb25a56302.tar.gz
Merge branch 'master' of https://git.php.net/repository/php-src
Diffstat (limited to 'sapi/cli/php_cli_server.c')
-rw-r--r--sapi/cli/php_cli_server.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c
index 64acd9a682..6315cd8ae5 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);
}