Bug #18111 Updated: imap_sort hangs with large mailboxes

From: Date: Wed, 03 Jul 2002 12:42:18 +0000
Subject: Bug #18111 Updated: imap_sort hangs with large mailboxes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12978@lists.php.net to get a copy of this message
ID: 18111 Updated by: jonathan@tricolon.com Reported By: jonathan@tricolon.com -Status: Feedback +Status: Closed Bug Type: IMAP related Operating System: Red Hat Linux 7.1 PHP Version: 4.2.0 New Comment: Not a PHP problem, but the C-Client problem. After some debugging I saw that the problem was that the C-Client uses RETR to fetch the headers of a message, and this is also affecting the imap_sort function (like reported in other bug reports). Sorry to bother you and thank you! Jonathan Previous Comments: ------------------------------------------------------------------------ [2002-07-02 11:20:41] sniper@php.net reclassified, it's not crashing. ------------------------------------------------------------------------ [2002-07-02 11:20:08] sniper@php.net How did you install the c-client? The version information in phpinfo() is not very accurate but should show 2001 if you have the latest release of it. And you should also try this snapshot which has some improvements for imap code: http://snaps.php.net/php4-latest.tar.gz ------------------------------------------------------------------------ [2002-07-02 10:56:55] jonathan@tricolon.com Hello, I am experiencing the same problems as in bugreport numbers 11336 and 11603, that is the imap_sort function 'hangs' when connected to a large mailbox, say 35 megabyte. On smaller mailboxen, however the function works fine. AFAIK I am using the latest C-Client (phpinfo() shows: IMAP c-Client Version 4.1 ) and php version 4.2.0. For more info take a look at https://secure.tricolon.com/phpinfo.php. The code looks like this: $sort = imap_sort($stream,1,0); If I use the code below all works well: $sort = Array(); $nrmsg = imap_num_msg($stream); for ($t = 0; $t < $nrmsg; $t++) { $sort[$t] = $nrmsg-$t; } Please advice what to do! Thanks, Jonathan ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18111&edit=1

« previous php.bugs (#12978) next »