6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/21/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#8036] Avoid infinite loop if popen fails
*
Your Email Address
*
Spam protection
Enter the letters below:
__..__ . ..__ .__. (__ | \\ /[__)| | .__)|__/ \/ [__)|__|
Comment
> We had various times the problem that the max. memory for a php > process exceeded while talking to gpg and hence the popen termintated > abnormally. This abnormal termination isn't caught by horde and hence > the following loop will lead to an infinite loop and fill the php > logs. > > > > http://ch.php.net/manual/en/function.feof.php warns about the problem > of an infinite loop and comments propose various ways to avoid that. > > > > The attached patch will introduce one of the discussed ways to deal > with this problem. > > > > We are operating now with this patch for some time and didn't > encounter anymore the problem of an infinite loop. > > > > As far as we could see this problem exists in other popen calls as > well and hence it might be worth to review all the popen calls of > horde apps, to avoid this problem.
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