6.0.0-alpha14
6/25/25

[#11026] Horde_Imap_Client breaks displaying mail in IMP (traditional mode only)
Summary Horde_Imap_Client breaks displaying mail in IMP (traditional mode only)
Queue Horde Base
Queue Version 4.0.13
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester arjen+horde (at) de-korte (dot) org
Created 02/25/2012 (4869 days ago)
Due
Updated 02/29/2012 (4865 days ago)
Assigned 02/25/2012 (4869 days ago)
Resolved 02/27/2012 (4867 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
02/29/2012 11:00:49 AM Git Commit Comment #8 Reply to this comment
Changes have been made in Git (develop):

commit fdbed86d99588110a1bea2f3497948a45378d990
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Tue Feb 28 21:42:48 2012 -0700

     Bug #11026: Better fix to invalidate cache entries.

  .../Imap_Client/lib/Horde/Imap/Client/Cache.php    |   20 
+++++++++++---------
  1 files changed, 11 insertions(+), 9 deletions(-)

http://git.horde.org/horde-git/-/commit/fdbed86d99588110a1bea2f3497948a45378d990
02/27/2012 07:24:06 AM Git Commit Comment #7 Reply to this comment
Changes have been made in Git (develop):

commit 13716e3207c103c00eed3107912dad92eb53f477
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Sun Feb 26 22:48:36 2012 -0700

     [mms] Workaround PHP bug when using serialized Envelope data 
created by Horde_Imap_Client < 1.5.0 (Bug #11026).

  .../Imap_Client/lib/Horde/Imap/Client/Cache.php    |   32 +++++++++++++++----
  framework/Imap_Client/package.xml                  |    2 +
  2 files changed, 27 insertions(+), 7 deletions(-)

http://git.horde.org/horde-git/-/commit/13716e3207c103c00eed3107912dad92eb53f477
02/27/2012 05:50:55 AM Michael Slusarz Comment #6
State ⇒ Resolved
Reply to this comment
Turned out to be a bit easier to fix (although very brute-force) by 
invalidating the entire cache.
02/27/2012 05:49:01 AM Git Commit Comment #5 Reply to this comment
Changes have been made in Git (master):

commit 13716e3207c103c00eed3107912dad92eb53f477
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Sun Feb 26 22:48:36 2012 -0700

     [mms] Workaround PHP bug when using serialized Envelope data 
created by Horde_Imap_Client < 1.5.0 (Bug #11026).

  .../Imap_Client/lib/Horde/Imap/Client/Cache.php    |   32 +++++++++++++++----
  framework/Imap_Client/package.xml                  |    2 +
  2 files changed, 27 insertions(+), 7 deletions(-)

http://git.horde.org/horde-git/-/commit/13716e3207c103c00eed3107912dad92eb53f477
02/27/2012 05:20:42 AM Michael Slusarz Comment #4 Reply to this comment
A workaround is to clear your Horde cache.
This is a nasty PHP bug.  The data needs to be invalidated at the time 
the object is unserialized - since the object can be recreated at this 
time.  It can't be checked/worked around at retrieval time.

The only practical solution is to clear the cache as a login task in 
IMP.  This can't be backed out of Horde_Imap_Client since the new data 
structure causing the issue fixes other bugs that are critical (e.g. 
broken e-mail parsing).
02/27/2012 05:14:29 AM Michael Slusarz Comment #3 Reply to this comment
A workaround is to clear your Horde cache.
02/27/2012 05:13:57 AM Michael Slusarz Comment #2 Reply to this comment
This appears to be a PHP bug.  See: https://bugs.php.net/bug.php?id=61192
02/25/2012 01:24:26 PM Jan Schneider Assigned to Michael Slusarz
State ⇒ Assigned
 
02/25/2012 10:16:00 AM arjen+horde (at) de-korte (dot) org Comment #1
Milestone ⇒
State ⇒ Unconfirmed
Patch ⇒ No
Queue ⇒ Horde Base
Summary ⇒ Horde_Imap_Client breaks displaying mail in IMP (traditional mode only)
Type ⇒ Bug
Priority ⇒ 1. Low
Reply to this comment
After installing the latest stable version of Horde_Imap_Client from 
pear (1.5.0) , the is a problem in IMP (traditional mode only, dynamic 
mode loads fine):

[Wed Feb 22 23:32:36 2012] [error] [client 192.168.1.116] PHP Fatal 
error:  __clone method called on non-object in 
/usr/share/php5/PEAR/Horde/Imap/Client/Data/Envelope.php on line 90, 
referer: http://webmail.example.com/horde/imp/

The summary of mailboxes loads without problems, but trying to display 
a message, the above error is logged and the frame is empty. This 
first started when I installed the latest stable version (1.5.0) from 
pear, reverting back to the previous version (1.4.4) restores this.

At the time of this writing, the installation is up-to-date with pear 
(except for Horde_Imap_Client).

Saved Queries