ID:               49750
 Updated by:       f...@php.net
 Reported By:      donauinsel at hotmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Sockets related
 Operating System: Windows 2003
 PHP Version:      5.2.11
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

I don't really get what you mean.
The only reference to "end of data" I could find in the RFC 821 is:

>end of mail data indication
>      A special sequence of characters that indicates the end of the
>      mail data.  In particular, the five characters carriage return,
>      line feed, period, carriage return, line feed, in that order.

But I can't make the connection to feof.

Could you please elaborate and also give example output of your
mailserver (and version, etc.)
Your code snippet gives me this:
string(52) "220 XXXXXXXXX.XXXXX.XXXX ESMTP Postfix (Debian/GNU)
"


Previous Comments:
------------------------------------------------------------------------

[2009-10-02 15:30:43] donauinsel at hotmail dot com

Description:
------------
Any SMTP Class may return "end-of-data"



Reproduce code:
---------------
<?php
$fp = fsockopen('localhost', 25, $errno, $errstr, 10);
if (!$fp) {
    echo "$errstr ($errno)<br />\n";
} else {
      if(!feof($fp)) {
      echo fgets($fp, 100);  
      }  
    }
    fclose($fp);
?>




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49750&edit=1

Reply via email to