mirror of
https://github.com/php/php-src.git
synced 2025-01-08 20:17:28 +08:00
22d461df62
keys. This cannot be backported to PHP 5.3 due to a BC break. See UPGRADING for more information.
28 lines
464 B
PHP
28 lines
464 B
PHP
--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)
|
|
}
|