#12570 [Com]: feof () - no break on eof of socket
| From: | animal-exotic1640 at hotmail dot com | Date: | Tue, 20 Jul 2004 15:12:29 +0000 |
| Subject: | #12570 [Com]: feof () - no break on eof of socket | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63135@lists.php.net to get a copy of this message | ||
ID: 12570
Comment by: animal-exotic1640 at hotmail dot com
Reported By: m dot leuffen at i-line dot net
Status: Bogus
Bug Type: Network related
Operating System: SuSE 7.0
PHP Version: 4.0.6
New Comment:
<a href=http://xxxratedendlessshav.da.ru>animal
exotic</a>
Previous Comments:
------------------------------------------------------------------------
[2002-06-04 04:35:37] mfischer@php.net
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.
------------------------------------------------------------------------
[2002-01-28 09:42:44] pdesjardins at kamitech dot 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 dot leuffen at i-line dot 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