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

From: Date: Tue, 04 Jun 2002 08:35:37 +0000
Subject: Bug #12570 Updated: feof () - no break on eof of socket
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9430@lists.php.net to get a copy of this message
ID: 12570 Updated by: mfischer@php.net Reported By: m.leuffen@i-line.net -Status: Analyzed +Status: Bogus Bug Type: Network related Operating System: SuSE 7.0 PHP Version: 4.0.6 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately your version of PHP is too old -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [2002-01-28 09:42:44] pdesjardins@kamitech.com I have the same bug on RedHat 7.2. Can I have a workaround for feof()? Thanks ------------------------------------------------------------------------ [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.bugs (#9430) next »