diff options
author | Kalle Sommer Nielsen <kalle@php.net> | 2017-07-07 08:18:33 +0200 |
---|---|---|
committer | Kalle Sommer Nielsen <kalle@php.net> | 2017-07-07 08:18:33 +0200 |
commit | 5a991ea49b1accf766e0044e10a3712fe0399a27 (patch) | |
tree | 0fa4afb05d502b3da44c31bd2a821c8bf424102d /ext/imap/php_imap.c | |
parent | 9507d145844928db640fb60df4783aaffea04d23 (diff) | |
download | php-git-5a991ea49b1accf766e0044e10a3712fe0399a27.tar.gz |
Fixed bug #72324 (imap_mailboxmsginfo() return wrong size)
Diffstat (limited to 'ext/imap/php_imap.c')
-rw-r--r-- | ext/imap/php_imap.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 0f6ac9a2d0..17456e3df7 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -2601,7 +2601,8 @@ PHP_FUNCTION(imap_mailboxmsginfo) zval *streamind; pils *imap_le_struct; char date[100]; - unsigned int msgno, unreadmsg, deletedmsg, msize; + unsigned long msgno; + zend_ulong unreadmsg = 0, deletedmsg = 0, msize = 0; if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &streamind) == FAILURE) { return; @@ -2614,10 +2615,6 @@ PHP_FUNCTION(imap_mailboxmsginfo) /* Initialize return object */ object_init(return_value); - unreadmsg = 0; - deletedmsg = 0; - msize = 0; - for (msgno = 1; msgno <= imap_le_struct->imap_stream->nmsgs; msgno++) { MESSAGECACHE * cache = mail_elt (imap_le_struct->imap_stream, msgno); mail_fetchstructure (imap_le_struct->imap_stream, msgno, NIL); |