]> granicus.if.org Git - php/commitdiff
fix condition
authorAnatol Belski <ab@php.net>
Tue, 3 Feb 2015 16:51:12 +0000 (17:51 +0100)
committerAnatol Belski <ab@php.net>
Tue, 3 Feb 2015 16:52:19 +0000 (17:52 +0100)
the headers member is allocated together with the SAPI globals struct

ext/standard/head.c

index 72197373103ac17e87fe865e5af0e8aec25da339..a8daf1e4ef9b5f0ed869ac0b2c795d7faad106ee 100644 (file)
@@ -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);