You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public function __construct(array $records, bool $error = false)
But it is created in DNSGetRecordWrapper with the result returned by dns_get_record().
return new DNSRecords(dns_get_record($host, $type));
According to the documentation, dns_get_record() may return false in case of error. Querying an invalid or unknown domain results in false being returned. Passing false when an array type is expected produces a fatal crash.
I suspect that if dns_get_result() returns false, it must be replaced with the empty array [].
The text was updated successfully, but these errors were encountered:
The constructor of DNSRecords expects an array as first argument.
But it is created in DNSGetRecordWrapper with the result returned by
dns_get_record()
.According to the documentation,
dns_get_record()
may returnfalse
in case of error. Querying an invalid or unknown domain results infalse
being returned. Passingfalse
when anarray
type is expected produces a fatal crash.I suspect that if
dns_get_result()
returns false, it must be replaced with the empty array[]
.The text was updated successfully, but these errors were encountered: