[php-src] master: ext/standard: Remove dead StreamPollHandle::getFileDescriptor()
| From: | Nicolas Grekas via Jakub Zelenka | Date: | Mon, 21 Sep 2026 09:20:12 +0000 |
| Subject: | [php-src] master: ext/standard: Remove dead StreamPollHandle::getFileDescriptor() | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141319@lists.php.net to get a copy of this message | ||
Author: Nicolas Grekas (nicolas-grekas)
Committer: Jakub Zelenka (bukka)
Date: 2026-09-21T11:20:09+02:00
Commit: https://github.com/php/php-src/commit/59e0be101b05ba375bafe3b961ce96e5aa64d3c9
Raw diff: https://github.com/php/php-src/commit/59e0be101b05ba375bafe3b961ce96e5aa64d3c9.diff
ext/standard: Remove dead StreamPollHandle::getFileDescriptor()
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.
Changed paths:
M ext/standard/io_poll.c
Diff:
diff --git a/ext/standard/io_poll.c b/ext/standard/io_poll.c
index a8a0563627fa..864a802bdadd 100644
--- a/ext/standard/io_poll.c
+++ b/ext/standard/io_poll.c
@@ -485,20 +485,6 @@ PHP_METHOD(StreamPollHandle, isValid)
RETURN_BOOL(intern->ops->is_valid(intern));
}
-PHP_METHOD(StreamPollHandle, getFileDescriptor)
-{
- ZEND_PARSE_PARAMETERS_NONE();
-
- php_poll_handle_object *intern = PHP_POLL_HANDLE_OBJ_FROM_ZV(getThis());
- php_socket_t fd = php_poll_handle_get_fd(intern);
-
- if (fd == SOCK_ERR) {
- RETURN_LONG(0);
- }
-
- RETURN_LONG((zend_long) fd);
-}
-
PHP_METHOD(Io_Poll_Watcher, __construct)
{
zend_throw_error(NULL, "Cannot directly construct Watcher, use Context::add");