]> granicus.if.org Git - php/commitdiff
Fixed Bug #72193 (dns_get_record returns array containing elements of type 'unknown')
authorXinchen Hui <laruence@gmail.com>
Wed, 11 May 2016 09:31:46 +0000 (17:31 +0800)
committerXinchen Hui <laruence@gmail.com>
Wed, 11 May 2016 09:31:46 +0000 (17:31 +0800)
NEWS
ext/standard/dns_win32.c

diff --git a/NEWS b/NEWS
index 245ae996dbaf4a3d2e13acbe53b106e9cbedcbf1..1847b2d2c59c7b91489d829dbc99c8ea5f167bde 100644 (file)
--- 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
 
index 22c606eb0ad6accd435a79013e3d1f1f66cec572..c9c23415d9152b55c361fd67ac5206d249c2fd29 100644 (file)
@@ -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;
        }