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 |
State ⇒ Duplicate
Ticket #11026.State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ __clone method called on non-object
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ No
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