From: Xinchen Hui Date: Wed, 11 May 2016 09:31:46 +0000 (+0800) Subject: Fixed Bug #72193 (dns_get_record returns array containing elements of type 'unknown') X-Git-Tag: php-7.0.8RC1~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df404e2e0eb190cd40f8f04a237cb9b655022148;p=php Fixed Bug #72193 (dns_get_record returns array containing elements of type 'unknown') --- 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; }