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

From: Date: Tue, 03 Feb 2015 16:52:19 +0000
Subject: com php-src: fix condition: ext/standard/head.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84595@lists.php.net to get a copy of this message
Commit: 55cefb2814bde5815a92e8820fff45e037fa8d4f Author: Anatol Belski <ab@php.net> Tue, 3 Feb 2015 17:51:12 +0100 Parents: 73a6e7e24a7f08d2a60f30ece97cff3a22a8b13a Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=55cefb2814bde5815a92e8820fff45e037fa8d4f Log: fix condition the headers member is allocated together with the SAPI globals struct Changed paths: M ext/standard/head.c Diff: diff --git a/ext/standard/head.c b/ext/standard/head.c index 7219737..a8daf1e 100644 --- a/ext/standard/head.c +++ b/ext/standard/head.c @@ -281,7 +281,7 @@ PHP_FUNCTION(headers_list) return; } - if (!&SG(sapi_headers).headers) { + if (!&SG(sapi_headers).headers.count) { RETURN_FALSE; } array_init(return_value);

« previous php.cvs (#84595) next »