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

From: Date: Mon, 28 Jan 2002 14:42:45 +0000
Subject: Bug #12570 Updated: feof () - no break on eof of socket
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-78301@lists.php.net to get a copy of this message
ID: 12570 Comment by: pdesjardins@kamitech.com Old Reported By: m.leuffen@i-line.net Reported By: pdesjardins@kamitech.com 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] alindeman@php.net reproduced with latest CVS. ------------------------------------------------------------------------ [2001-08-07 12:36:46] alindeman@php.net status -> analyzed (!) ------------------------------------------------------------------------ [2001-08-04 20:43:38] m.leuffen@i-line.net 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

« previous php.dev (#78301) next »