1
0
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:
Niklas Keller 2017-06-14 08:10:06 +02:00
commit 08ada39e3b

View File

@ -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;
}
}