#26362 [NEW]: stream_select(): unable to select [0]: mod.eval.php
| From: | gunnar dot peipman at mail dot ee | Date: | Sun, 23 Nov 2003 04:24:43 +0000 |
| Subject: | #26362 [NEW]: stream_select(): unable to select [0]: mod.eval.php | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-50866@lists.php.net to get a copy of this message | ||
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 http://bugs.php.net/?id=26362&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26362&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26362&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26362&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26362&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26362&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=26362&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26362&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26362&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26362&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26362&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26362&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26362&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26362&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26362&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26362&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26362&r=float