6.0.0-alpha10
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
5/15/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#15050] PHP 8 breaks Horde_Imap_Client_Socket::_fetchCmd
*
Your Email Address
*
Spam protection
Enter the letters below:
\ /. __..___.___ >< | (__ [__ [__ / \|___.__)| |
Comment
> When using Horde_Imap_Client_Fetch_Query::headers like this: > > > $query->headers( > 'references', [ 'references' ], [ > 'cache' => true, > 'peek' => true, > ] > ); > > the string comparison in Horde_Imap_Client_Socket::_fetchCmd Line > 2932 doesn't work as expected any more in PHP8. > > > It results in an IMAP error: > > C: 3 UID FETCH 904 (ENVELOPE FLAGS INTERNALDATE > BODY.PEEK[references.HEADER.FIELDS (REFERENCES)]) > S: 3 BAD Error in IMAP command UID FETCH: Invalid BODY[..] section > (0.001 + 0.000 secs). > > One option would be to replace the line: > > $cmd = ( $key == 0 ) > > with: > > $cmd = ( is_string( $key ) === true && ( $key == 0 ) === false ) >
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