[Tickets #2585] NEW: Fatal error: Only variables can be passed by reference

bugs@bugs.horde.org bugs at bugs.horde.org
Sat Sep 10 03:25:59 PDT 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=2585
-----------------------------------------------------------------------
 Ticket             | 2585
 Created By         | mirror at asgard.ch
 Summary            | Fatal error:  Only variables can be passed by reference
 Queue              | IMP
 Version            | 4.0.3
 State              | Unconfirmed
 Priority           | 1. Low
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


mirror at asgard.ch (2005-09-10 03:25) wrote:

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.




More information about the bugs mailing list