[SM-USERS] Bug Report

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[SM-USERS] Bug Report

mlong-2
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



-------------------------------------------------------
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: [hidden email]
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 | Threaded
Open this post in threaded view
|

[SM-USERS] Re: Bug Report

Michael Long
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)

[hidden email] 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: [hidden email]
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 | Threaded
Open this post in threaded view
|

Re: [SM-USERS] Re: Bug Report

Jon Angliss
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Fri, November 4, 2005 17:14, Michael Long wrote:
> 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)

  http://www.squirrelmail.org/wiki/KnownBugs

Please also search the list archives before posting, this has been covered
quite a lot in the last two or three days alone.

- --
Jonathan Angliss
<[hidden email]>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iEYEARECAAYFAkNsMJEACgkQK4PoFPj9H3PitgCfYvpqmfgwkrRu7pGUIltzbogC
c8YAn1rLGsxv9qkYo4XeLoecd2gXfFhS
=fcyB
-----END PGP SIGNATURE-----



-------------------------------------------------------
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: [hidden email]
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id)95
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
Reply | Threaded
Open this post in threaded view
|

Re: [SM-USERS] Bug Report

Jon Angliss
In reply to this post by mlong-2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Fri, November 4, 2005 17:06, [hidden email] wrote:

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

[..]

> 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


  http://www.squirrelmail.org/wiki/KnownBugs

Please also search the list archives before posting, this has been covered
quite a lot in the last two or three days alone.

- --
Jonathan Angliss
<[hidden email]>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iEYEARECAAYFAkNsNEMACgkQK4PoFPj9H3MzggCg2M7p2QBprY///HdQrJNKl4lZ
yj4An3eBeQ4b68htn0bScxF6Q29aLbyA
=M6yS
-----END PGP SIGNATURE-----



-------------------------------------------------------
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: [hidden email]
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id)95
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users