From: gunnar dot peipman at mail dot ee
Operating system: Windows XP Pro
PHP version: 4.3.4
PHP Bug Type: Sockets related
Bug description: stream_select(): unable to select [0]: mod.eval.php

Description:
------------
When using non-blocking sockets I get the following error:

Warning: stream_select(): unable to select [0]: No error in
<b>c:\web\www\bot\bot\mod.eval.php(17).



Reproduce code:
---------------
Open stream to IRC server and after getting connection and identifying the
script try to use the following code:

error_reporting(E_ALL);
echo (stream_select($gSOCKARRAY, $write=NULL, $except=NULL, 1,
1)===false);

Expected result:
----------------
I expect that for false there is no changes and for true there is some
socket I have to test.

Actual result:
--------------
All I get is the warning above. I tried to change timeouts but no luck at
all. Still apache eats about 78% of my CPU.

--
Edit bug report at [url]http://bugs.php.net/?id=26362&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=26362&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=26362&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=26362&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=26362&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=26362&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=26362&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=26362&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=26362&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=26362&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=26362&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=26362&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=26362&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=26362&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=26362&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=26362&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=26362&r=float[/url]