Summary | Imap_Client: Prevent endless loop in writeLiteral() |
Queue | Horde Framework Packages |
Queue Version | Git master |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | slusarz (at) horde (dot) org |
Requester | thomas.jarosch (at) intra2net (dot) com |
Created | 05/15/2014 (4072 days ago) |
Due | |
Updated | 05/15/2014 (4072 days ago) |
Assigned | |
Resolved | 05/15/2014 (4072 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | Yes |
Assigned to Michael Slusarz
State ⇒ Resolved
Would be great if you could find the root cause so we can fix the
issue rather than treat the symptoms.
commit 2c52d885d2ea0b11af35478f643f2ac58deaeedf
Author: Michael M Slusarz <slusarz@horde.org>
Date: Thu May 15 15:31:16 2014 -0600
[mms] Better error checking when writing data to the server (Bug
#13187; Thomas Jarosch <thomas.jarosch@intra2net.com>).framework/Imap_Client/package.xml | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
http://github.com/horde/horde/commit/2c52d885d2ea0b11af35478f643f2ac58deaeedf
Priority ⇒ 1. Low
New Attachment: 0001-Prevent-endless-loop-in-writeLiteral.patch
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ Imap_Client: Prevent endless loop in writeLiteral()
Type ⇒ Bug
State ⇒ Unconfirmed
logging this message until the HDD was full:
PHP ERROR: feof() expects parameter 1 to be resource, integer given
[pid 24223 on line 106 of
"/usr/share/pear/Horde/Imap/Client/Socket/Connection/Socket.php"]
PHP ERROR: fread() expects parameter 1 to be resource, integer given
[pid 24223 on line 107 of
"/usr/share/pear/Horde/Imap/Client/Socket/Connection/Socket.php"]
Prevent it by checking the return value of fread().
While we are at it, check the return value of rewind(), too.
The real cause of this problem is located somewhere else,
but getting stuck in an endless loop isn't nice either :)
Cheers,
Thomas