|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-11-04 03:45 UTC] wez@php.net
[2003-11-05 10:05 UTC] flape at pobox dot sk
[2003-11-28 17:32 UTC] wez@php.net
[2003-12-04 02:23 UTC] sniper@php.net
[2004-03-04 11:44 UTC] flape at pobox dot sk
[2004-03-04 12:00 UTC] flape at pobox dot sk
[2004-03-06 07:31 UTC] flape at pobox dot sk
[2004-03-08 06:35 UTC] sniper@php.net
[2004-08-19 13:46 UTC] aidan@php.net
[2004-08-19 13:48 UTC] aidan@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 27 18:00:01 2025 UTC |
Description: ------------ stream_select aplied on a file handle - that is told to be a stream too - emiadelly returns. Reproduce code: --------------- <? $fh = fopen('debug.txt','r+'); stream_set_blocking($fh ,false); $ra = array($fh); while(true){ while(0 == stream_select($ra,$w = NULL,$e = NULL,20)) $text = fgets($fh,10); echo $text; flush(); ob_flush(); } fclose($fh); ?> Expected result: ---------------- It should prit the context of debug.txt and everithing what was added to that file after starting the script. Actual result: -------------- Warning: stream_select(): unable to select [0]: No error in c:\temp\htdocs\debug.php on line 7