-
-
Notifications
You must be signed in to change notification settings - Fork 726
Implement Eventloop based on pecl/ev #178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This is not issue 160 but #163 |
woops. updated ! |
} | ||
|
||
return function ($event) use ($stream, $listener, $removeCallback) { | ||
if (feof($stream)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This if
statement should be removed. The stream handler should be removing this from the event loop, not the event loop itself. This statement currently removes the stream from the loop without notifying the listeners.
I installed ev through
|
Just to document what @cboden and I have been talking about on IRC, it appears that the test is failing due to some issues with EV and how php://temp works. It appears that this was resolved for ExtEvent by the following: https://github.com/reactphp/event-loop/blob/master/tests/ExtEventLoopTest.php#L26 (see https://bugs.php.net/bug.php?id=64652). This would also need to be added for EvLoop. @csaoh any idea what effort is left on this? I am willing to help if needed. |
@steverhoades I think you should pick @csaoh 's work and continue it if you're ok with that |
This PR seems like a good starting point, thanks @csaoh! This PR has been WIP for quite some time now and things have changed considerably since then :-) React now consists of individual components that are maintained individually. Supporting the pecl/ev loop is now related to the react/event-loop component. @steverhoades started porting this over to this component via reactphp/event-loop#12, so I suppose it makes sense to focus pecl/ev related efforts on this component. |
Fix #163
The tests are failing for now, but the bug (ev does not seem to work with php://temp) was reported.