php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11336 imap_sort function fails on huge mailboxes
Submitted: 2001-06-07 16:01 UTC Modified: 2001-06-08 14:12 UTC
From: elnar at azdata dot net Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.0.4 OS: FreeBSD
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: elnar at azdata dot net
New email:
PHP Version: OS:

 

 [2001-06-07 16:01 UTC] elnar at azdata dot net
<?php 
$mbox = imap_open ("{server:143}", "login", "password");

echo "<p><h1>Headers in INBOX</h1>\n";
$headers = imap_sort($mbox, 'SORTDATE', '0', SE_UID);;

if ($headers == false) {
    echo "Call failed<br>\n";
} else {
    while (list ($key,$val) = each ($headers)) {
        echo $val."<br>\n";
    }
}

imap_close($mbox);

?>

imap_sort function fails if mailbox is very huge(6000 messages) and nothing is returnd to browser so it shows "The page cannot be displayed" error!
Please let me know if any help or advices available.
Thanks.
Elnar C Hajiev.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-08 14:12 UTC] sniper@php.net
First update your IMAP libraries (to imap-2000 at least)
and also your PHP 4 to at least 4.0.5.

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 08:01:30 2025 UTC