Skip to content

Avoid call to php_socket_errno() if possible #13909

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

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Apr 7, 2024

This call is only necessary if ret < 0.
Note that I also had to reoder the checks for EWOULDBLOCK, EMSGSIZE, EAGAIN to avoid a false positive GCC warning about a duplicate condition (EAGAIN == EWOULDBLOCK on my system).

This call is only necessary if ret < 0.
Note that I also had to reoder the checks for EWOULDBLOCK, EMSGSIZE, EAGAIN
to avoid a false positive GCC warning about a duplicate condition
(EAGAIN == EWOULDBLOCK on my system).
@nielsdos nielsdos marked this pull request as ready for review April 7, 2024 21:35
@nielsdos nielsdos requested a review from bukka as a code owner April 7, 2024 21:35
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me

@nielsdos nielsdos merged commit ae5220a into php:master Apr 8, 2024
@bukka
Copy link
Member

bukka commented Apr 8, 2024

It would be nice to have an exported function for that so the logic is not duplicated. But it's improvement anyway.

@nielsdos
Copy link
Member Author

nielsdos commented Apr 8, 2024

It would be nice to have an exported function for that so the logic is not duplicated. But it's improvement anyway.

Yeah I agree; I've put it on my TODO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants