Skip to content

Deprecated parameter in imap2_headerinfo() #26

Open
@digicommons

Description

@digicommons

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 deprecated defaulthost, 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions