Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.1 - Imap\Connection is returned instead of ImapResource #525

Closed
andybeesee opened this issue Nov 29, 2021 · 0 comments · Fixed by #527
Closed

PHP 8.1 - Imap\Connection is returned instead of ImapResource #525

andybeesee opened this issue Nov 29, 2021 · 0 comments · Fixed by #527
Labels

Comments

@andybeesee
Copy link

Q A
ddeboer/imap version 1.12.2
PHP version 8.1.0
IMAP provider Internal dovecot - not relevant

Summary

Attempting to use ddeboer/imap on PHP 8.1 throws an exception "Supplied resource is not a valid imap resource", because PHP 8.1 now returns Imap\Connection instead of a resource. (see upgrade guide)

Current behavior

Attempt to connect to IMAP server - see InvalidResourceException is thrown by ImapResource->getStream method

How to reproduce: code & error stack trace

use PHP 8.1 and connect to a server

Expected behavior

No exception is thrown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant