-
Notifications
You must be signed in to change notification settings - Fork 3k
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
socket_create() should return a Socket not a stream #4036
Comments
Doing a clean build now with a fix for this. Will send a pull fix in a bit. |
We have a fix for this up internally already. Sorry about the duplicated effort. |
I guess I'll take my two lines of code elsewhere! ;) Glad it's getting fixed. 👍 |
Yep. It hasn't landed yet because as it turns out the Socket class is used by some of our stream socket resources that should themselves report that they are streams. There are a bunch of test failures that didn't get mirrored onto the external diff. I should have an update for it this week to address that. |
HHVM's implementation of socket_create returns a resource of type "stream" instead of type "socket" causing \Net\Gearman\Connection::isConnected to return false even when the connection is a valid resource. See: facebook/hhvm#4036
HHVM's implementation of socket_create returns a resource of type "stream" instead of type "socket" causing \Net\Gearman\Connection::isConnected to return false even when the connection is a valid resource. See: facebook/hhvm#4036
HHVM's implementation of socket_create returns a resource of type "stream" instead of type "socket" causing \Net\Gearman\Connection::isConnected to return false even when the connection is a valid resource. See: facebook/hhvm#4036
HHVM's implementation of socket_create returns a resource of type "stream" instead of type "socket" causing \Net\Gearman\Connection::isConnected to return false even when the connection is a valid resource. See: facebook/hhvm#4036
Well, this still exists, but a quick test is claiming that socket_create doesn't exist in PHP, which is odd: |
@Orvid Socket support is optional in PHP, my assumption is that it was purposely NOT included (--enable-sockets) in 3v4l.org given the opportunity for abuse. |
The text was updated successfully, but these errors were encountered: