From: flape at pobox dot sk Operating system: Win2K PHP version: 4.3.3 PHP Bug Type: Filesystem function related Bug description: stream_select
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 -- Edit bug report at http://bugs.php.net/?id=25933&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25933&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25933&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25933&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25933&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25933&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25933&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25933&r=support Expected behavior: http://bugs.php.net/fix.php?id=25933&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25933&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25933&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25933&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25933&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25933&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25933&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25933&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25933&r=float