Skip to content

ext/standard: Remove dead StreamPollHandle::getFileDescriptor() - #23792

Merged
bukka merged 1 commit into
php:masterfrom
nicolas-grekas:io-poll-drop-dead-method
Sep 21, 2026
Merged

bukka merged 1 commit into
php:masterfrom
nicolas-grekas:io-poll-drop-dead-method

Conversation

@nicolas-grekas

Copy link
Copy Markdown
Contributor

The method has no entry in io_poll.stub.php, so it is in no method table and calling it is a Error: Call to undefined method StreamPollHandle::getFileDescriptor(). The RFC does not list it either.

Happy to turn this around and declare it in the stub instead if exposing the fd is wanted.

The method has no entry in the stub, so it is in no method table and cannot be
called. The RFC does not list it either.
@nicolas-grekas

Copy link
Copy Markdown
Contributor Author

#23810 exports what an extension needs to accept an Io\Poll\Handle and resolve its descriptor in C, which covers the consumers this method would have had.

@bukka bukka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah yeah, this was a left over...

@bukka
bukka merged commit 59e0be1 into php:master Sep 21, 2026
18 checks passed
@nicolas-grekas
nicolas-grekas deleted the io-poll-drop-dead-method branch September 21, 2026 09:34
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.

2 participants