From:             [EMAIL PROTECTED]
Operating system: SuSE 7.0
PHP version:      4.0.6
PHP Bug Type:     Network related
Bug description:  feof () - no break on eof of socket


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?


Edit bug report at:

PHP Development Mailing List <>
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