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

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 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