6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/24/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#2585] Fatal error: Only variables can be passed by reference
*
Your Email Address
*
Spam protection
Enter the letters below:
.__.. .. ,.__..__. | ||\ | \./ | |[__] |__|| \| | |__|| |
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.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers