<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Avoid infinite loop if popen fails</title> 
  <pubDate>Fri, 10 Apr 2026 11:02:31 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8036</link> 
  <atom:link rel="self" type="application/rss+xml" title="Avoid infinite loop if popen fails" href="https://bugs.horde.org/ticket/8036/rss" /> 
  <description>Avoid infinite loop if popen fails</description> 
 
   
   
  <item> 
   <title>We had various times the problem that the max. memory for a </title> 
   <description>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&#039;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&#039;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.</description> 
   <pubDate>Sun, 01 Mar 2009 15:15:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8036#t52811</link> 
  </item> 
   
  <item> 
   <title>Added to Horde 4.  Since it involves throwing an error where</title> 
   <description>Added to Horde 4.  Since it involves throwing an error where there was no error thrown previously, this won&#039;t be backported to Horde 3.</description> 
   <pubDate>Mon, 02 Mar 2009 21:52:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8036#t52834</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
