Skip to content

ext/sockets: socket_select() silent set truncation on Windows. - #23632

Open
devnexen wants to merge 1 commit into
php:PHP-8.4from
devnexen:socket_fd_fix
Open

ext/sockets: socket_select() silent set truncation on Windows.#23632
devnexen wants to merge 1 commit into
php:PHP-8.4from
devnexen:socket_fd_fix

Conversation

@devnexen

@devnexen devnexen commented Sep 9, 2026

Copy link
Copy Markdown
Member

php_sock_array_to_fd_set() returned a flag rather than the socket count, so PHP_SAFE_MAX_FD() got a zero and never fired. Sets larger than FD_SETSIZE were quietly truncated and select() reported on the survivors.

php_sock_array_to_fd_set() returned a flag rather than the socket count, so
PHP_SAFE_MAX_FD() got a zero and never fired. Sets larger than FD_SETSIZE
were quietly truncated and select() reported on the survivors.
@devnexen
devnexen marked this pull request as ready for review September 9, 2026 18:40
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