You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Will result in a hang, after printing the warning, with an empty select() syscall being emitted.
However, adding in an error handler throwing an exception, e.g. set_error_handler(function() { throw new \Exception; }); at the start will cause the warning not be printed and still hang indefinitely, hiding the issue very well.
bwoebi
changed the title
stream_select does not abort upon exception and empty valid fd set
stream_select does not abort upon exception or empty valid fd set
Sep 21, 2022
Description
The following code:
Will result in a hang, after printing the warning, with an empty select() syscall being emitted.
However, adding in an error handler throwing an exception, e.g.
set_error_handler(function() { throw new \Exception; });
at the start will cause the warning not be printed and still hang indefinitely, hiding the issue very well.(Original bug report at amphp/amp#398)
PHP Version
PHP 7.4 - master
Operating System
No response
The text was updated successfully, but these errors were encountered: