com php-src: remove useless condition: sapi/cgi/cgi_main.c

From: Date: Wed, 11 Feb 2015 10:46:29 +0000
Subject: com php-src: remove useless condition: sapi/cgi/cgi_main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84808@lists.php.net to get a copy of this message
Commit: 12a42433b27bd2f3c28a496269610fe53c567310 Author: Anatol Belski <ab@php.net> Wed, 11 Feb 2015 11:19:19 +0100 Parents: 67d94d1465fb7809096b8d68c5c2359aeb4f8a74 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=12a42433b27bd2f3c28a496269610fe53c567310 Log: remove useless condition Changed paths: M sapi/cgi/cgi_main.c Diff: diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index a0bba17..6b93408 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); }

« previous php.cvs (#84808) next »