Bug #12570 Updated: feof () - no break on eof of socket
| From: | alindeman@php.net | Date: | Tue, 07 Aug 2001 16:36:46 +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-62443@lists.php.net to get a copy of this message | ||
ID: 12570
Updated by: alindeman
Reported By: m.leuffen@i-line.net
Status: Analyzed
Bug Type: Network related
Operating System: SuSE 7.0
PHP Version: 4.0.6
New Comment:
status -> analyzed (!)
Previous Comments:
------------------------------------------------------------------------
[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