Bug #12570: feof () - no break on eof of socket

From: Date: Sun, 05 Aug 2001 00:43:38 +0000
Subject: Bug #12570: feof () - no break on eof of socket
Groups: php.dev 
Request: Send a blank email to php-dev+get-62114@lists.php.net to get a copy of this message
From: m.leuffen@i-line.net 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

« previous php.dev (#62114) next »