-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
[libevent] is currently not work in php7 #40
Comments
Hi, I can run with php 7 by compiling the libevent : https://github.com/expressif/pecl-event-libevent But when I run my websocket, I have an error on the line 301 of the file LibEventLoop.php:
tell me that $_ is redefined. I just changed by:
and it works but I'am sure that my modification is not correct ;-) |
didn't go that far :P, still scare the idea of self doing everything (self compile), I heard socket io do better than php in term of socket, will give it a try |
I use ratchet-php which utilizes the React EvenLoop. Upgrading to the new package solved this for me. I checked the source and the official solution is Full Details: |
Although it "works" I had to eventually disable this as it would occasionally segfault. |
The duplicate parameter names have been fixed via #45, so this should theoretically work once libevent supports PHP7. There's ongoing effort to update libevent to support PHP7 in php/pecl-event-libevent#2. However, the current version occasionally segfaults. This could not be observed in earlier version, so it is believed that this is a bug in libevent, rather than React. As such, there's little we can do here. In the meantime, you may want to check out the "event" extension. We've seen reports of people successfully using this on PHP7. I believe this has been answered, so I'm closing this for now. Please come back with more details if this problem persists and we can reopen this 👍 |
It all start with:
/vendor/react/event-loop/LibEventLoop.php on line 34
After trying to make it work, it come to:
pecl/libevent requires PHP (version >= 5.3.0, version <= 6.0.0, excluded versions: 6.0.0), installed version is 7.0.1-2+deb.sury.org~wily+1
No valid packages found
Not sure if I report this here is right since it depend on libevent
The text was updated successfully, but these errors were encountered: