1
0
mirror of https://github.com/danog/dns.git synced 2024-11-30 04:29:06 +01:00

Add php-src bug reference

This commit is contained in:
Niklas Keller 2017-07-01 12:19:09 +02:00
parent e0fc018ad7
commit c1c552d752

View File

@ -157,8 +157,11 @@ abstract class Socket {
}
try {
// Work around an OPCache issue that returns an empty array with "return yield ...", so assign to a variable first.
// Work around an OPCache issue that returns an empty array with "return yield ...",
// so assign to a variable first.
//
// See https://github.com/amphp/dns/issues/58.
// See https://bugs.php.net/bug.php?id=74840.
$result = yield Promise\timeout($deferred->promise(), $timeout);
return $result;
} catch (Amp\TimeoutException $exception) {