Return to bug53427.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / streams |
1.1 misho 1: --TEST-- 2: Bug #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: 10: var_dump($read); 11: 12: stream_select($read, $write, $except, 0); 13: 14: var_dump($read); 15: --EXPECTF-- 16: array(2) { 17: [1]=> 18: resource(%d) of type (stream) 19: ["myindex"]=> 20: resource(%d) of type (stream) 21: } 22: array(2) { 23: [1]=> 24: resource(%d) of type (stream) 25: ["myindex"]=> 26: resource(%d) of type (stream) 27: }