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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 16:01:29 2024 UTC