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