Skip to content

ext/sockets: Fix socket_close_stream_resource.phpt on Windows - #25946

Closed
jorgsowa wants to merge 1 commit into
php:PHP-8.4from
jorgsowa:fix-socket-close-stream-resource-test-windows
Closed

jorgsowa wants to merge 1 commit into
php:PHP-8.4from
jorgsowa:fix-socket-close-stream-resource-test-windows

Conversation

@jorgsowa

Copy link
Copy Markdown
Contributor

socket_import_stream() fails on an unbound socket on Windows, as getsockname() returns WSAEINVAL. Bind the socket first.

Similar fix 8771c265a43

socket_import_stream() fails on an unbound socket on Windows, as
getsockname() returns WSAEINVAL. Bind the socket first.
@jorgsowa

Copy link
Copy Markdown
Contributor Author

Failing test https://github.com/php/php-src/actions/runs/46443912300/job/141936152537?pr=25946 is not related. I'm investigating this, but PR may be merged likely.

@jorgsowa jorgsowa closed this in b26babd Nov 30, 2026
@jorgsowa

Copy link
Copy Markdown
Contributor Author

I'm merging it to resolve failing test on master

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.

1 participant