Bug #18111: imap_sort crashes with large mailboxes

From: Date: Tue, 02 Jul 2002 14:56:56 +0000
Subject: Bug #18111: imap_sort crashes with large mailboxes
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12811@lists.php.net to get a copy of this message
From: jonathan@tricolon.com Operating system: Red Hat Linux 7.1 PHP version: 4.2.0 PHP Bug Type: Reproducible crash Bug description: imap_sort crashes with large mailboxes 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 bug report at http://bugs.php.net/?id=18111&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18111&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18111&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18111&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18111&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18111&r=support Expected behavior: http://bugs.php.net/fix.php?id=18111&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18111&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18111&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18111&r=globals

« previous php.bugs (#12811) next »