#46049 [Fbk]: feof() hangs
| From: | dsp@php.net | Date: | Mon, 24 Nov 2008 02:19:44 +0000 |
| Subject: | #46049 [Fbk]: feof() hangs | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-131241@lists.php.net to get a copy of this message | ||
ID: 46049
Updated by: dsp@php.net
Reported By: sebastian@php.net
Status: Feedback
Bug Type: Streams related
Operating System: Linux
PHP Version: 5.3CVS-2008-09-11 (CVS)
Assigned To: dsp
New Comment:
If everybody is fine with that, I will revert the patch.
Previous Comments:
------------------------------------------------------------------------
[2008-11-21 17:46:28] lbarnaud@php.net
Shorter reproduce code:
<?php
$socket = stream_socket_client('tcp://www.php.net:80');
var_dump(feof($socket));
?>
The feof() will block until timeout is reached.
David, your fix correctly made feof() behave as documented (blocks
until timeout is reached if no data is available), but should feof()
really blocks here ? It seems it never behaved as documented (checked
php4.4, 5.1, 5.2.6).
------------------------------------------------------------------------
[2008-11-18 23:46:15] felipe@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2008-11-05 13:43:24] dsp@php.net
Jani: I think it's an issue with the ssl socks, as my patch didn't
patch
those. I try to have time to have a look on this, but I
cannot reproduce the patch yet even though I sit down with sebstian and
try to figure out what's going wrong.
------------------------------------------------------------------------
[2008-10-28 22:08:32] jani@php.net
David, I guess we just have to revert that bad patch of yours then?
------------------------------------------------------------------------
[2008-09-11 12:17:57] tony2001@php.net
David, it appears that this problem is caused by this patch of yours:
http://news.php.net/php.cvs/52689
Take a look at it please.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/46049
--
Edit this bug report at http://bugs.php.net/?id=46049&edit=1