File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
standard /
tests /
streams /
bug53427.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue May 29 12:34:44 2012 UTC (12 years, 2 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
HEAD
php 5.4.3+patches
--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)
}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>