1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00

Fixed Bug #72193 (dns_get_record returns array containing elements of type 'unknown')

This commit is contained in:
Xinchen Hui
2016-05-11 17:31:46 +08:00
parent 66ad4fc393
commit df404e2e0e
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -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
+2
View 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;
}