6.0.0-beta1
7/6/25

[#11027] __clone method called on non-object
Summary __clone method called on non-object
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Duplicate
Priority 1. Low
Owners
Requester michael (at) bigmichi1 (dot) de
Created 02/25/2012 (4880 days ago)
Due
Updated 02/27/2012 (4878 days ago)
Assigned
Resolved 02/27/2012 (4878 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
02/27/2012 04:42:35 AM Michael Slusarz Comment #2
State ⇒ Duplicate
Reply to this comment
Duplicate of Ticket #11026.
02/25/2012 01:51:30 PM michael (at) bigmichi1 (dot) de Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ __clone method called on non-object
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ No
Reply to this comment
i got many errors when accessing a mailbox after upgrading to the 
latest released pear packages for horde framework

[Thu Feb 23 10:44:57 2012] [error] [client xx.xx.xx.xx] PHP Fatal 
error:  __clone method called on non-object in 
/usr/local/zend/share/pear/Horde/Imap/Client/Data/Envelope.php on line 
90, referer: https://xxx/imp/


i inserted an is_object check so that the code now looks so:

                 foreach ($this->_data[$name] as $val) {
                     if ($val instanceof Horde_Mail_Rfc822_Group) {
                         foreach ($val->addresses as $val2) {
                             $out[] = clone $val2;
                         }
                     } else {
                         $out[] = is_object($val) ? clone $val : $val;
                     }
                 }

this did it for me, but i don't know if it is right

Saved Queries