From a83e1a0d9a24e6e01abceb11d2b778435ea20d2d Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Sun, 20 Sep 2026 16:56:36 +0200 Subject: [PATCH] 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. --- ext/standard/io_poll.c | 14 -------------- 1 file changed, 14 deletions(-) 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");