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?>
16--EXPECTF--
17array(2) {
18  [1]=>
19  resource(%d) of type (stream)
20  ["myindex"]=>
21  resource(%d) of type (stream)
22}
23array(2) {
24  [1]=>
25  resource(%d) of type (stream)
26  ["myindex"]=>
27  resource(%d) of type (stream)
28}
29