Skip to content

Commit

Permalink
Add php-src bug reference
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Jul 1, 2017
1 parent e0fc018 commit c1c552d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Internal/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,11 @@ public function ask(Question $question, int $timeout): Promise {
}

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) {
Expand Down

0 comments on commit c1c552d

Please sign in to comment.