php-imap2 icon indicating copy to clipboard operation
php-imap2 copied to clipboard

imap_headerinfo( ) Fatal error with PHP 8.0 changes

Open BrookStR opened this issue 2 years ago • 1 comments

[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.

BrookStR avatar Feb 01 '23 04:02 BrookStR

Duplicate of https://github.com/javanile/php-imap2/issues/26

SiebeVE avatar Feb 08 '23 14:02 SiebeVE