ID: 12570
Comment by: [EMAIL PROTECTED]
Old Reported By: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Analyzed
Bug Type: Network related
Operating System: SuSE 7.0
PHP Version: 4.0.6
New Comment:

I have the same bug on RedHat 7.2.
Can I have a workaround for feof()?

Thanks


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

[2001-08-07 13:20:55] [EMAIL PROTECTED]

reproduced with latest CVS.

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

[2001-08-07 12:36:46] [EMAIL PROTECTED]

status -> analyzed (!)

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

[2001-08-04 20:43:38] [EMAIL PROTECTED]

Hallo,

I have a problem with the fsock-Funktions:


$sock = fsockopen ($ip, $port, &$errno, &$errstr, 30);
while (!feof ($sock)) {
  echo fgetc ($sock);
  flush ()
}
fclose ($sock);


This function hangs after correct output of the initial Data. (It seems
that feof () ist false also on end of the $sock)

Or is there an other way to check if the end is reached?

By(t)e,
  Matthias



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



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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to