6.0.0-beta1
9/24/25

[#2585] Fatal error: Only variables can be passed by reference
Summary Fatal error: Only variables can be passed by reference
Queue IMP
Queue Version 4.0.3
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester mirror (at) asgard (dot) ch
Created 09/10/2005 (7319 days ago)
Due
Updated 09/10/2005 (7319 days ago)
Assigned
Resolved 09/10/2005 (7319 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
09/10/2005 02:58:49 PM Chuck Hagenbuch State ⇒ Not A Bug
 
09/10/2005 10:25:57 AM mirror (at) asgard (dot) ch Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Fatal error: Only variables can be passed by reference
Queue ⇒ IMP
Reply to this comment
Hi



I've updated PHP to version 5.0.5. With this version of PHP IMP 4.0.3 
won't work, because of an "PHP Fatal error:  Only variables can be 
passed by reference in /usr/local/www/horde/imp/mailbox.php on line 
553". Because of this fatal error the user can't view his Inbox.



I made a quick'n'dirty hack and changed the line 553 in 
horde/imp/mailbox.php as followed to get it working again:



//$from_ob = array_shift(imap_rfc822_parse_adrlist($h->from, ''));

$from_ob_tmp = imap_rfc822_parse_adrlist($h->from, '');

$from_ob = array_shift($from_ob_tmp);



Also in horde/imp/message.php I made some changes:



// $from_ob = array_shift(imap_rfc822_parse_adrlist($imp_headers->getFrom

Address(), ''));

$from_ob_tmp = imap_rfc822_parse_adrlist($imp_headers->getFromAddress(), '');

$from_ob = array_shift($from_ob_tmp);



Regards

-luca.

Saved Queries