diff options
| author | Xinchen Hui <laruence@gmail.com> | 2016-05-11 17:31:46 +0800 |
|---|---|---|
| committer | Xinchen Hui <laruence@gmail.com> | 2016-05-11 17:31:46 +0800 |
| commit | df404e2e0eb190cd40f8f04a237cb9b655022148 (patch) | |
| tree | 6856ec5273b0cef748b5475bfdba98bcab778926 | |
| parent | 66ad4fc393d687f4ca255dd3788529856942bbaa (diff) | |
| download | php-git-df404e2e0eb190cd40f8f04a237cb9b655022148.tar.gz | |
Fixed Bug #72193 (dns_get_record returns array containing elements of type 'unknown')
| -rw-r--r-- | NEWS | 4 | ||||
| -rw-r--r-- | ext/standard/dns_win32.c | 2 |
2 files changed, 6 insertions, 0 deletions
@@ -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; } |
