In php newbie, do not kick much pliz. Imap_open hangs and meet, until you kill the process. Googled, people really complain. I did not find a solution. Indicated

imap_timeout(IMAP_READTIMEOUT, 60); 

does not help where to dig? Any thoughts .. Help please, really need.

  • The question is unfortunately not new. I caught this problem hanging on the waiting network and ignored all imap_timeout timeouts. backtrace from gdb confirms that the problem is in the library and leads to the depth of the C code. Perhaps the problem is specific only for SSL bugs.php.net/bug.php?id=61846 But this is not easier, because Most imap servers now work with encryption only. I finally run the script through timeout 15m php imapreader.php - Shallow
  • @ Small thanks for the answer, specify what the timeout 15m php imapreader.php script is timeout 15m php imapreader.php - Agapkin
  • timeout is a command from coreutils, and therefore is usually available. Runs and after the specified time kills the specified command. 15m - 15 minutes respectively. That is, the script will be killed after 15 minutes no matter what it does and what it does not expect. - Small
  • @ Fine, I don’t have coreutils, tried set_time_limit(); set does not help either. As a result, now I put a zend-mail, I'm rewriting. - Agapkin

0