#25575 [Fbk->NoF]: stream_set_blocking with STDIN doesnt block
| From: | sniper@php.net | Date: | Mon, 19 Jan 2004 19:11:25 +0000 |
| Subject: | #25575 [Fbk->NoF]: stream_set_blocking with STDIN doesnt block | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-53594@lists.php.net to get a copy of this message | ||
ID: 25575
Updated by: sniper@php.net
Reported By: bill at baghead dot co dot uk
-Status: Feedback
+Status: No Feedback
Bug Type: Sockets related
Operating System: Redhat 9
PHP Version: 4CVS-2003-12-16
Assigned To: wez
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2004-01-14 09:49:29] wez@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-12-16 09:53:15] bill at baghead dot co dot uk
Using the latest snapshop, it still shows the same problem..
Cheers - Bill.
------------------------------------------------------------------------
[2003-11-28 17:46:54] wez@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Just committed a probable fix; please try the next snapshot.
------------------------------------------------------------------------
[2003-09-24 21:41:12] robert at interjinn dot com
I've been directed here from bug #25616 with the indication that this
is the same bug. I read this bug before I posted bug #25616 and the
issues seems different. This one describes an issue with blocking mode,
my bug describes an issue whith the script exitting successfully while
in an infinite loop, which is contrary to the expected functionality of
a while( 1 ) loop. I'm not sure why I was pointed here. Albeit my bug
seemed to come into existence with the use of stream_set_blocking(
$stdin, FALSE )
------------------------------------------------------------------------
[2003-09-18 04:15:44] bill at baghead dot co dot uk
The case is with the original code stated, the code loops, and does not
block on the fread - ie, it keeps returning instantly (even with
nothing), which seems to me to be non blocking eventhough I'd told it
to block..
If I remove the stream_set_blocking(STDIN,TRUE); altogether, fread
appears to block - but instead of returning after receiving a block of
data, it blocks until the buffer is filled up (in this case being 128
bytes) - *then* it returns..
------------------------------------------------------------------------
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/25575
--
Edit this bug report at http://bugs.php.net/?id=25575&edit=1