From df404e2e0eb190cd40f8f04a237cb9b655022148 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Wed, 11 May 2016 17:31:46 +0800 Subject: [PATCH] Fixed Bug #72193 (dns_get_record returns array containing elements of type 'unknown') --- NEWS | 4 ++++ ext/standard/dns_win32.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/NEWS b/NEWS index 245ae996db..1847b2d2c5 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,10 @@ PHP NEWS . Fixed bug #71573 (Segfault (core dumped) if paramno beyond bound). (Laruence) +- Standard: + . Fixed bug #72193 (dns_get_record returns array containing elements of + type 'unknown'). (Laruence) + 26 May 2016 PHP 7.0.7 diff --git a/ext/standard/dns_win32.c b/ext/standard/dns_win32.c index 22c606eb0a..c9c23415d9 100644 --- a/ext/standard/dns_win32.c +++ b/ext/standard/dns_win32.c @@ -146,6 +146,8 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, int raw, type = pRec->wType; ttl = pRec->dwTtl; + ZVAL_UNDEF(subarray); + if (type_to_fetch != DNS_TYPE_ANY && type != type_to_fetch) { return; } -- 2.40.0