Skip to content

imap_headerinfo( ) Fatal error with PHP 8.0 changes #48

Open
@BrookStR

Description

@BrookStR

[01-Feb-2023 03:26:05 UTC] PHP Fatal error: Uncaught ArgumentCountError: imap_headerinfo() expects at most 4 arguments, 5 given in /Classes/javanile/php-imap2/bootstrap.php:858

function was set with 5 arguments -- { return imap_headerinfo($imap, $messageNum, $fromLength, $subjectLength,$defaultHost); }

PHP.net documentation state : the unused defaultHost parameter has been removed.

Unsure if we have an older version of javanile - php-imap2 however testing on php 8.0 showed this issue.

Deleting the defaultHost parameter fixed issue.

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