[Tickets #5604] ListMessages endless loop

bugs at bugs.horde.org bugs at bugs.horde.org
Sun Aug 5 22:25:59 UTC 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=5604
-----------------------------------------------------------------------
 Ticket             | 5604
 Created By         | vokac at kmlinux.fjfi.cvut.cz
 Summary            | ListMessages endless loop
 Queue              | DIMP
 Version            | 1.0-ALPHA
 Type               | Bug
 State              | Unconfirmed
 Priority           | 3. High
 Owners             | 
-----------------------------------------------------------------------


vokac at kmlinux.fjfi.cvut.cz (2007-08-05 15:25) wrote:

Selecting mail folder results in endless loop of calling ListMessages.php.
This problem seems to be probably related to specific version of PHP. It
doesn't work on CentOS5 with PHP 5.1.6 (see also
http://lists.horde.org/archives/imp/Week-of-Mon-20070716/047606.html) but
it works on Fedora 7 with PHP 5.2.2.


There is small difference in data that was returned by ListMessages.php on
CentOS5 and Fedora7

CentOS5 (3 mails in INBOX):
/*-secure-{"response":{ ... ,"msglist":{}, ...
},"msgs":[],"msgs_auto":true}*/
Fedora7 (3 mails in INBOX):
/*-secure-{"response":{ ... ,"msglist":{"1":1,"2":2,"3":3}, ...
},"msgs":[],"msgs_auto":true}*/


To get rid of this problem on CentOS, I had to change following piece of
code (I did not test it anywhere else, so I'm not sure if this patch works
on all PHP versions).


--- dimp-h3-1.0-alpha/lib/Views/ListMessages.php.orig   2007-07-25
07:57:30.000000000 +0200
+++ dimp-h3-1.0-alpha/lib/Views/ListMessages.php        2007-08-06
00:11:50.000000000 +0200
@@ -182,7 +182,7 @@
 
         $result->lines = count($msglist);
         $result->msgdata = $msgs;
-        $result->msglist = (object)$msglist;
+        $result->msglist = $msglist;
 
         /* Mail-specific viewport information. */
         $md = new stdClass;




More information about the bugs mailing list