Skip to content

Commit

Permalink
preload php error class
Browse files Browse the repository at this point in the history
  • Loading branch information
matthi4s committed Nov 2, 2023
1 parent 69e60b8 commit 39d8539
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Runtime/SocketRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ public function __construct(?SocketInterface $socket = null)
}
set_error_handler($this->handleError(...), E_ALL);
$this->setReady();

// Force loading of PhpError class, because it might not be possible to load the class in the
// error handler, e.g. when the open files limit is reached
class_exists(PhpError::class);
}

/**
Expand Down

0 comments on commit 39d8539

Please sign in to comment.