php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26362 stream_select(): unable to select [0]: mod.eval.php
Submitted: 2003-11-22 23:24 UTC Modified: 2003-12-01 03:14 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: gunnar dot peipman at mail dot ee Assigned:
Status: No Feedback Package: Sockets related
PHP Version: 4.3.4 OS: Windows XP Pro
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
2 + 45 = ?
Subscribe to this entry?

 
 [2003-11-22 23:24 UTC] gunnar dot peipman at mail dot ee
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-22 23:26 UTC] gunnar dot peipman at mail dot ee
Sorry, forgot to mention that $gSOCKARRAY is array with one socket pointer. ($gSOCKARRAY=array($gSOCK_POINTER)).
 [2003-11-23 01:12 UTC] sniper@php.net
Provide short but COMPLETE example script.

 [2003-12-01 03:14 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Dec 08 17:05:52 2022 UTC