You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, while testing php-imap2 on a PHP 8.0.0 codebase I came across an ArgumentCountError when using imap2_headerinfo(). Since PHP 8.0.0 is using a resource instead of an IMAP\Connection, the control flow in bootstrap.php (line 845) uses imap_headerinfo() as a fallback. But since PHP 8.0.0 deprecateddefaulthost, only 4, not 5 arguments are expected.
Is there a way to fix this? If you have a preferred way to deal with version specific functionality, I'd be happy to submit a pull request.
Thanks!
The text was updated successfully, but these errors were encountered:
@digicommons Thanks your support is very useful for the project.
You are free to make a pull-request. I gladly accept it and we will release it with the next release.
Hi, while testing php-imap2 on a PHP 8.0.0 codebase I came across an
ArgumentCountError
when usingimap2_headerinfo()
. Since PHP 8.0.0 is using a resource instead of anIMAP\Connection
, the control flow inbootstrap.php
(line 845) usesimap_headerinfo()
as a fallback. But since PHP 8.0.0 deprecateddefaulthost
, only 4, not 5 arguments are expected.Is there a way to fix this? If you have a preferred way to deal with version specific functionality, I'd be happy to submit a pull request.
Thanks!
The text was updated successfully, but these errors were encountered: