diff --git a/bootstrap.php b/bootstrap.php index 565b797..cf2c265 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -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); }