|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-08-20 00:36 UTC] kalle@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: kalle
[2017-07-07 06:18 UTC] kalle@php.net
-Status: Assigned
+Status: Closed
[2017-07-07 06:18 UTC] kalle@php.net
[2017-07-07 06:19 UTC] kalle@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
Description: ------------ When mailbox or subfolder larger than 4G, the imap_mailboxmsginfo() will return wrong size. It is because the msize for accumulate the RFC822.SIZE overflow beyond 4G due to 32bit integer. By changing the unsigned int to unsigned long, the msize will be calculated correctly. --- ext/imap/php_imap.c.orig 2016-06-03 16:39:44.387619879 +0800 +++ ext/imap/php_imap.c 2016-06-03 16:40:10.484287296 +0800 @@ -2601,7 +2601,7 @@ PHP_FUNCTION(imap_mailboxmsginfo) zval *streamind; pils *imap_le_struct; char date[100]; - unsigned int msgno, unreadmsg, deletedmsg, msize; + unsigned long msgno, unreadmsg, deletedmsg, msize; if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &streamind) == FAILURE) { return;