Just to make it clear this bug immediately happened when i used php 4.4.1...it did not happen with my previous version (php 4.3.11)

[EMAIL PROTECTED] wrote:

I subscribe to the squirrelmail-users mailing list.
 [ ]  True - No need to CC me when replying
 [X]  False - Please CC me when replying

This bug occurs when I ...
 ... view any message


The description of the bug:

When you click to view an email it hangs until php hits max_execution_time
and stops the script


I can reproduce the bug by:

switching back to php 4.4.1 (under apache 2.0.55)


(Optional) I got bored and found the bug occurs in:

src/read_body.php, line 98:

for (reset($msort); ($key = key($msort)), (isset($key));  next($msort)) {

when i added a simple print I saw that the value of $key never changed
and it was stuck in the loop


(Optional) I got really bored and here's a fix:


----------------------------------------------

My browser information:
 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12)
Gecko/20050915 Firefox/1.0.7

My web server information:
 PHP Version 4.3.11
 PHP Extensions (List)
   * 0 = xml
   * 1 = tokenizer
   * 2 = standard
   * 3 = session
   * 4 = posix
   * 5 = pcre
   * 6 = overload
   * 7 = mysql
   * 8 = ctype
   * 9 = apache2handler
   * 10 = apc

SquirrelMail-specific information:
 Version:  1.4.5
 Plugins (List)
   * 0 = spiritspam
   * 1 = select_range
   * 2 = attachment_tnef
   * 3 = spirittheme
   * 4 = bounce
   * 5 = squirrel_logger
   * 6 = xheader
   * 7 = abook_take
   * 8 = squirrelspell
   * 9 = delete_move_next
   * 10 = translate
   * 11 = view_as_html
   * 12 = addgraphics
   * 13 = vlogin
   * 14 = html_mail
   * 15 = abook_import_export
   * 16 = get_uuencode
   * 17 = ldifimport
   * 18 = bug_report

My IMAP server information:
 Server type:  other
 Server info:  * OK [HIDDEN] IMAP4rev1 Server PMDF V6.2-X29.1 at Fri, 4
Nov 2005 17:36:47 PST
 Capabilities:  IMAP4 IMAP4REV1 NAMESPACE X-NON-HIERARCHICAL-RENAME
AUTH=LOGIN

--

Michael Long
Application Development & System Planning
Spirit Telecom




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
--
squirrelmail-users mailing list
Posting Guidelines: 
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: [email protected]
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to