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:
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user