From: flape at pobox dot sk
Operating system: Win2K
PHP version: 4.3.3
PHP Bug Type: Filesystem function related
Bug description: stream_select

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(0 == stream_select($ra,$w = NULL,$e = NULL,20))
$text = fgets($fh,10);
echo $text;



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 [url][/url]
Try a CVS snapshot (php4): [url][/url]
Try a CVS snapshot (php5): [url][/url]
Fixed in CVS: [url][/url]
Fixed in release: [url][/url]
Need backtrace: [url][/url]
Try newer version: [url][/url]
Not developer issue: [url][/url]
Expected behavior: [url][/url]
Not enough info: [url][/url]
Submitted twice: [url][/url]
register_globals: [url][/url]
PHP 3 support discontinued: [url][/url]
Daylight Savings: [url][/url]
IIS Stability: [url][/url]
Install GNU Sed: [url][/url]
Floating point limitations: [url][/url]