Prior to PHP 8.1.0, this extension defined the resource type imap as returned by imap_open() references an opened IMAP stream.
imap