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
Undefined constant SOCKET_EAGAIN in Windows #619
Milestone
Comments
If you have time, a pull request would be appreciated. Thanks! |
When I hardcode the value for this, it is working for me
|
I fixed this issue by enabling the socket ext in php |
@nifrasismail |
from your
P.S if you are using docker install the extension on your Dockerfile
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have found a compatibility bug at \PhpAmqpLib\Wire\IO\StreamIO.php line 88:
I checked the PHP source code, the SOCKET_EAGAIN constant is referred from EAGAIN, but cannot be accessed in Windows (EWOULDBLOCK instead in Windows). Thus the program would crash due to this undefined constant. Please kindly check whether defined SOCKET_EAGAIN before use it, or replace it by SOCKET_EWOULDBLOCK, also it's an alias for SOCKET_EAGAIN in Linux.
The text was updated successfully, but these errors were encountered: