|  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
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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: gunnar dot peipman at mail dot ee
New email:
PHP Version: OS:


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

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.


Add a Patch

Pull Requests

Add a Pull Request


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]
Provide short but COMPLETE example script.

 [2003-12-01 03:14 UTC]
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-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 02 06:01:27 2023 UTC