[Tickets #11027] __clone method called on non-object

bugs at horde.org bugs at horde.org
Sat Feb 25 13:51:30 UTC 2012


BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE  
E-MAIL-ADRESSE WERDEN NICHT GELESEN.

Ticket-URL: http://bugs.horde.org/ticket/11027
------------------------------------------------------------------------------
  Ticket           | 11027
  Erstellt Von     | michael at bigmichi1.de
  Zusammenfassung  | __clone method called on non-object
  Warteschlange    | Horde Framework Packages
  Version          | Git master
  Typ              | Bug
  Status           | Unconfirmed
  Priorität        | 1. Low
  Milestone        |
  Patch            |
  Zuständige       |
------------------------------------------------------------------------------


michael at bigmichi1.de (2012-02-25 13:51) hat geschrieben:

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





More information about the bugs mailing list