PHP Classes

Timeout at line 76

Recommend this page to a friend!

      POP3 e-mail client  >  All threads  >  Timeout at line 76  >  (Un) Subscribe thread alerts  
Subject:Timeout at line 76
Summary:Problem with retrievemessage
Messages:4
Author:Stefan Wulff
Date:2006-05-10 06:04:46
Update:2006-05-11 20:31:54
 

  1. Timeout at line 76   Reply   Report abuse  
Picture of Stefan Wulff Stefan Wulff - 2006-05-10 06:04:46
Hi!
Is there any known problem with this pop3-class an PHP5.1.2? After really spending a lot of time with debugging, it seems, there is a different behaviour between PHP 4.1.x on our Online-Webspace and my PHP 5.1.2 (xampp) Installation:

When I try to retrieve a full message,

if (($error = $pop3_connection->RetrieveMessage(Key($result), &$header, &$body, -1))=="") { ... }

I'm getting a 60-second-timeout with PHP5.1.2 at line 76 in Function GetLine(). It works fine with PHP4.
Seems the function doesn't neither gets a feof() nor any further data.

I activated debug mode and could see, that the final "." in transmission of the mail isn't received by the skript :-( It's just waiting ...

Thanks for any hint!

Yours,
Stefan


  2. Re: Timeout at line 76   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2006-05-10 16:18:47 - In reply to message 1 from Stefan Wulff
Are you saying that the server sends the final message dot character but the class does not process it as a end of message mark, or that the server does not send the end of message dot?

  3. Re: Timeout at line 76   Reply   Report abuse  
Picture of Stefan Wulff Stefan Wulff - 2006-05-10 19:48:34 - In reply to message 2 from Manuel Lemos
I can see in debug mode with php 4.3.4 that the server sends it, but the skript doesn't receive it with php 5.1.2

  4. Re: Timeout at line 76   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2006-05-11 20:31:54 - In reply to message 3 from Stefan Wulff
I just tried the example script PHP 5.1.2 and it works well as expected.

Could you possibly be using any kind of PHP optimizer extension?