#46024 [Opn->Fbk]: stream_select doesn't return the correct number
ID: 46024
Updated by: jani@php.net
Reported By: mike at silverorange dot com
-Status: Open
+Status: Feedback
Bug Type: Streams related
Operating System: linux
PHP Version: 5.2.6
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
Previous Comments:
------------------------------------------------------------------------
[2008-09-08 14:33:47] mike at silverorange dot com
Description:
------------
The stream_select function should return the number of streams ready in
the read and write arrays. Sometimes it does and sometimes it doesn't.
Reproduce code:
---------------
http://labs.silverorange.com/files/stream-select-bug/
Expected result:
----------------
selecting ... got 2
Array ( [0] => Resource id #5 )
Array ( [0] => Resource id #6 )
selecting ... got 2
Array ( [0] => Resource id #5 )
Array ( [0] => Resource id #6 )
Actual result:
--------------
selecting ... got 2
Array ( [0] => Resource id #5 )
Array ( [0] => Resource id #6 )
selecting ... got 1
Array ( [0] => Resource id #5 )
Array ( [0] => Resource id #6 )
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46024&edit=1
Thread (5 messages)