Skip to content
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

Segmentation Fault #51

Closed
shtse8 opened this issue Aug 3, 2017 · 4 comments
Closed

Segmentation Fault #51

shtse8 opened this issue Aug 3, 2017 · 4 comments

Comments

@shtse8
Copy link

shtse8 commented Aug 3, 2017

I want to connect to a websocket using PHP, but a segmentation fault is thrown.

Code:

\Ratchet\Client\connect('wss://be.huobi.com/ws');

Result:

Segmentation Fault(Core Dumped)

Environment:

  1. Libevent 2.1.8
  2. PHP 7.1
@clue
Copy link
Member

clue commented Aug 3, 2017

It looks like you're using an unsupported beta of ext-libevent here? See also reactphp/event-loop#62 for more details.

@shtse8
Copy link
Author

shtse8 commented Aug 4, 2017

Thanks for your help. I have read that post before. But I still don't understand how I should fix it. Which libevent or any other event extensions should I install. I have followed some guild lines from google and compile the latest version of libevent which supported php 7.1 other people said. But still throwing SF.

@clue
Copy link
Member

clue commented Aug 5, 2017

The beta of ext-libevent you're using is currently bugged, make sure to let the author of said guidelines know 👍

In the meantime, you may want to check out the "event" extension. We've seen reports of people successfully using this on PHP7, see also reactphp/event-loop#55 (comment).

@shtse8
Copy link
Author

shtse8 commented Aug 6, 2017

Thanks very much! It works great now.

@shtse8 shtse8 closed this as completed Aug 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants