summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2016-05-11 17:31:46 +0800
committerXinchen Hui <laruence@gmail.com>2016-05-11 17:31:46 +0800
commitdf404e2e0eb190cd40f8f04a237cb9b655022148 (patch)
tree6856ec5273b0cef748b5475bfdba98bcab778926
parent66ad4fc393d687f4ca255dd3788529856942bbaa (diff)
downloadphp-git-df404e2e0eb190cd40f8f04a237cb9b655022148.tar.gz
Fixed Bug #72193 (dns_get_record returns array containing elements of type 'unknown')
-rw-r--r--NEWS4
-rw-r--r--ext/standard/dns_win32.c2
2 files changed, 6 insertions, 0 deletions
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;
}