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

imap_headerinfo( ) Fatal error with PHP 8.0 changes #48

Open
BrookStR opened this issue Feb 1, 2023 · 1 comment
Open

imap_headerinfo( ) Fatal error with PHP 8.0 changes #48

BrookStR opened this issue Feb 1, 2023 · 1 comment

Comments

@BrookStR
Copy link

BrookStR commented Feb 1, 2023

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

@SiebeVE
Copy link

SiebeVE commented Feb 8, 2023

Duplicate of #26

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

No branches or pull requests

2 participants