com php-src: Removed erroneous condition: ext/standard/head.c

From: Date: Fri, 06 Feb 2015 08:41:02 +0000
Subject: com php-src: Removed erroneous condition: ext/standard/head.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84677@lists.php.net to get a copy of this message
Commit: 9ef0c39b2b9e1a8212a953aee9deee26f0978ce8 Author: Anatol Belski <ab@php.net> Fri, 6 Feb 2015 09:41:02 +0100 Parents: 928fdbea0852b804c78fb7e28530c2d5162d44b5 Branches: PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9ef0c39b2b9e1a8212a953aee9deee26f0978ce8 Log: Removed erroneous condition This condition is always false. Furthermore headers_list() is documented to always return an array. Changed paths: M ext/standard/head.c Diff: diff --git a/ext/standard/head.c b/ext/standard/head.c index 3217cef..f66c604 100644 --- a/ext/standard/head.c +++ b/ext/standard/head.c @@ -277,9 +277,6 @@ PHP_FUNCTION(headers_list) return; } - if (!&SG(sapi_headers).headers) { - RETURN_FALSE; - } array_init(return_value); zend_llist_apply_with_argument(&SG(sapi_headers).headers, php_head_apply_header_list_to_hash, return_value TSRMLS_CC); }

« previous php.cvs (#84677) next »