Skip to content

Commit 39d8539

Browse files
committed
preload php error class
1 parent 69e60b8 commit 39d8539

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Runtime/SocketRuntime.php

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ public function __construct(?SocketInterface $socket = null)
3838
}
3939
set_error_handler($this->handleError(...), E_ALL);
4040
$this->setReady();
41+
42+
// Force loading of PhpError class, because it might not be possible to load the class in the
43+
// error handler, e.g. when the open files limit is reached
44+
class_exists(PhpError::class);
4145
}
4246

4347
/**

0 commit comments

Comments
 (0)