com php-src: Fixed Bug #72193 (dns_get_record returns array containing elements of type 'unknown') : NEWS ext/standard/dns_win32.c
| From: | Xinchen Hui | Date: | Wed, 11 May 2016 09:31:46 +0000 |
| Subject: | com php-src: Fixed Bug #72193 (dns_get_record returns array containing elements of type 'unknown') : NEWS ext/standard/dns_win32.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92087@lists.php.net to get a copy of this message | ||
Commit: df404e2e0eb190cd40f8f04a237cb9b655022148
Author: Xinchen Hui <laruence@gmail.com> Wed, 11 May 2016 17:31:46 +0800
Parents: 66ad4fc393d687f4ca255dd3788529856942bbaa
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=df404e2e0eb190cd40f8f04a237cb9b655022148
Log:
Fixed Bug #72193 (dns_get_record returns array containing elements of type 'unknown')
Bugs:
https://bugs.php.net/72193
Changed paths:
M NEWS
M ext/standard/dns_win32.c
Diff:
diff --git a/NEWS b/NEWS
index 245ae99..1847b2d 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 22c606e..c9c2341 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;
}