|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-11-30 13:30 UTC] tudoadtedoadrb at gmail dot com
Description: ------------ When you pass a keyed array of streams into stream_select the keys are lost. The behaviour I am seeing is similar to the socket_select bug 44197. Test script: --------------- <?php $read["myindex"] = $mystream; $write = NULL; $except = NULL; var_dump($read); stream_select($read, $write, $except, 0); var_dump($read); ?> Expected result: ---------------- Assuming $mystream changes status and there is data available for reading... array(1) { ["myindex"]=> resource(11) of type (stream) } array(1) { ["myindex"]=> resource(11) of type (stream) } Actual result: -------------- array(1) { ["myindex"]=> resource(11) of type (stream) } array(1) { [0]=> resource(11) of type (stream) } PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 13:00:01 2025 UTC |
Fixed in trunk, but cannot be backported to 5.3 in order not to break scripts that iterate the resulting arrays with for($i = 0; $i < count($fdset); $i++) { }.