Does not work with php8.1
https://www.php.net/manual/en/function.imap-open.php : 8.1.0 | Returns an IMAP\Connection instance now; previously, a resource was returned. several test sof resource type are performed and now return false in php8.1
Support for PHP 8.1 was planned for the next year! Feel free to ask me anythings.
I'd like to follow-up on this. Does the package support PHP 8.1 yet? We've come to rely on the library and are hoping to use it under v8.1.
Update:
Got it working under PHP 8.1 by replacing all instances in code of:
is_resource($imap) && get_resource_type($imap) == 'imap'
with:
is_a($imap,'IMAP\Connection')
I'm confused, as for us it seems to work with PHP8.1. Except we sometimes get this error and I wonder if it's related:
Argument #1 ($stream) must be of type resource, null given {"exception":"[object] (TypeError(code: 0): fclose( ): Argument #1 ($stream) must be of type resource, null given at /.../php-imap2/src/Roundcube/ImapClient.php:442
What errors did you get @cjwnz ?