|  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 25 12:01:32 2024 UTC