6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/25/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#12265] IMAP package throws errors
*
Your Email Address
*
Spam protection
Enter the letters below:
.___.. .. ..__.. . _/ |\ |\ /[__]|_/ ./__.| \| \/ | || \
Comment
>> could it happen that the IMAP server invalidates the handle and thus >> it is now null? > > No. A PHP resource is a specific data type. It can never be changed > by PHP itself to a different data type. > >> The error is located in Imap sockets protected function _readStream() >> The reason for the flooded error logs is, that the do-while loop is >> infinite if the stream is NULL, since the "break;" is only called >> with a vaild stream. >> So even it seems to be a rare occassion whrer the strem handle is >> NULL, the code should handle such a sittuation correctly. >> >> have a code proposal ( see attached patch) which handles the NULL >> handle correctly. > > This is not a correct fix. This simply masks the issue. It doesn't > fix anything. > > The correct fix is to figure out WHY _stream is null before entering > that method (i.e. the debug backtrace). You can use Horde::debug() > to help you with this, e.g. in _readStream(): > > if (is_null($this->_stream)) { > Horde::debug(); > exit; > }
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