Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,10 @@ function imap_headerinfo($imap, $messageNum, $fromLength = 0, $subjectLength = 0
function imap2_headerinfo($imap, $messageNum, $fromLength = 0, $subjectLength = 0, $defaultHost = null)
{
if (IMAP2_RETROFIT_MODE && is_resource($imap) && get_resource_type($imap) == 'imap') {
// PHP version === 8.0.*
if (PHP_VERSION_ID >= 80000) return imap_headerinfo($imap, $messageNum, $fromLength, $subjectLength);

// PHP version < 8.0.0
return imap_headerinfo($imap, $messageNum, $fromLength, $subjectLength, $defaultHost);
}

Expand Down