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.
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 https://github.com/amphp/amp/issues/398)
PHP Version
PHP 7.4 - master
Operating System
No response