Bug #80438 [NEW]: IMAP has broken in PHP 8 when it worked in 7.4.x and earlier.

From: Date: Sat, 28 Nov 2020 15:30:06 +0000
Subject: Bug #80438 [NEW]: IMAP has broken in PHP 8 when it worked in 7.4.x and earlier.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230695@lists.php.net to get a copy of this message
From:             kenai dot whitt at extraale dot com
Operating system: Windows/probably any
PHP version:      8.0.0
Package:          IMAP related
Bug Type:         Bug
Bug description:IMAP has broken in PHP 8 when it worked in 7.4.x and earlier.

Description:
------------
IMAP works in PHP 7.4.x and earlier. In PHP 8.0.0, it breaks by flooding
the error log with this: "imap_msgno(): Bad message number"

I have asked about it here:
https://stackoverflow.com/questions/65031547/what-has-changed-in-php-8-which-causes-imap-msgno-to-claim-bad-message-number

I was told to report this here.

Test script:
---------------
$message_number_array = imap_search($specific_mailbox_connection, 'ALL',
SE_UID);

if (count($message_number_array))
{
    foreach ($message_number_array as $message_number)
    {
        $header_info = imap_headerinfo($specific_mailbox_connection,
imap_msgno($specific_mailbox_connection, $message_number));
[...]


-- 
Edit bug report at https://bugs.php.net/bug.php?id=80438&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=80438&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=80438&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=80438&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=80438&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=80438&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=80438&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=80438&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=80438&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=80438&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=80438&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80438&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=80438&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=80438&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=80438&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=80438&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=80438&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=80438&r=mysqlcfg


Thread (4 messages)

« previous php.bugs (#230695) next »