mirror of
https://github.com/danog/dns.git
synced 2024-11-30 04:29:06 +01:00
Merge branch 'master' into amp_v2
This commit is contained in:
commit
08ada39e3b
@ -659,9 +659,9 @@ class DefaultResolver implements Resolver {
|
||||
$deferred->fail($error);
|
||||
} else {
|
||||
foreach ($result as $type => $records) {
|
||||
$minttl = INF;
|
||||
$minttl = \PHP_INT_MAX;
|
||||
foreach ($records as list( , , $ttl)) {
|
||||
if ($ttl && $minttl > $ttl) {
|
||||
if ($ttl < $minttl) {
|
||||
$minttl = $ttl;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user