Skip to content

Fix GH-19248: Use strerror_r instead of strerror in main #19251

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

Draft
wants to merge 1 commit into
base: PHP-8.3
Choose a base branch
from

Conversation

bukka
Copy link
Member

@bukka bukka commented Jul 26, 2025

This tries to use strerror_r in networking and stream code. It required some extending of php_socket_strerror and php_socket_error_str which is not exactly beautiful but can't think about much nicer way atm.

@bukka bukka changed the base branch from master to PHP-8.3 July 26, 2025 15:26
@bukka bukka force-pushed the stream_gh19248_strerror branch from 81f7547 to 469fc77 Compare July 26, 2025 15:26
@bukka
Copy link
Member Author

bukka commented Jul 26, 2025

It will need more testing. Need to figure out how to actually test the posix variant to make sure that it all works. Also need to figure out if we even have all those errors covered so there is still a bit of work.

@bukka bukka marked this pull request as draft July 26, 2025 15:29
@bukka bukka linked an issue Jul 26, 2025 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

Use strerror_r instead of strerror in stream and networking code
1 participant