Bug #18111 Updated: imap_sort hangs with large mailboxes

From: Date: Tue, 02 Jul 2002 15:20:41 +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-12814@lists.php.net to get a copy of this message
ID: 18111 Updated by: sniper@php.net -Summary: imap_sort crashes with large mailboxes Reported By: jonathan@tricolon.com Status: Feedback -Bug Type: Reproducible crash +Bug Type: IMAP related Operating System: Red Hat Linux 7.1 PHP Version: 4.2.0 New Comment: reclassified, it's not crashing. Previous Comments: ------------------------------------------------------------------------ [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 (#12814) next »