-
-
Notifications
You must be signed in to change notification settings - Fork 131
Closed
Labels
Description
It seems this kind of error suppression causes fatal errors on PHP 8
Is there any way to circumvent such error to cause a fatal error?
Also see dpovshed/octopus#45 for a way how to reproduce...
When removing the error suppression by changing
$ret = @\stream_select($read, $write, $except, $timeout === null ? null : 0, $timeout);to
$ret = \stream_select($read, $write, $except, $timeout === null ? null : 0, $timeout);The following error is generated:
Cannot cast a filtered stream on this system
When changing
event-loop/src/StreamSelectLoop.php
Line 271 in 8bd064c
| if ($read || $write) { |
to
if ($read && $write) {it works, but at this moment I have no idea what other effects this might have... 😕