mirror of
https://github.com/danog/dns.git
synced 2024-11-26 20:14:51 +01:00
Add php-src bug reference
This commit is contained in:
parent
e0fc018ad7
commit
c1c552d752
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user