1--TEST--
2Bug #53427 (stream_select does not preserve keys)
3--FILE--
4<?php
5$read[1] = fopen(__FILE__, "r");
6$read["myindex"] = reset($read);
7$write = NULL;
8$except = NULL;
9
10var_dump($read);
11
12stream_select($read, $write, $except, 0);
13
14var_dump($read);
15--EXPECTF--
16array(2) {
17  [1]=>
18  resource(%d) of type (stream)
19  ["myindex"]=>
20  resource(%d) of type (stream)
21}
22array(2) {
23  [1]=>
24  resource(%d) of type (stream)
25  ["myindex"]=>
26  resource(%d) of type (stream)
27}
28