Commit 59e0be101b0 for php.net

commit 59e0be101b05ba375bafe3b961ce96e5aa64d3c9
Author: Nicolas Grekas <nicolas.grekas@gmail.com>
Date:   Sun Sep 20 16:56:36 2026 +0200

    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.

diff --git a/ext/standard/io_poll.c b/ext/standard/io_poll.c
index a8a0563627f..864a802bdad 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");