From: Anatol Belski Date: Tue, 3 Feb 2015 16:51:12 +0000 (+0100) Subject: fix condition X-Git-Tag: PRE_PHP7_REMOVALS~18^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=55cefb2814bde5815a92e8820fff45e037fa8d4f;p=php fix condition the headers member is allocated together with the SAPI globals struct --- diff --git a/ext/standard/head.c b/ext/standard/head.c index 7219737310..a8daf1e4ef 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);