2 Bug #46024 stream_select() doesn't return the correct number
4 <?php if (!getenv('TEST_PHP_EXECUTABLE')) die("skip TEST_PHP_EXECUTABLE not defined"); ?>
7 $php = realpath(getenv('TEST_PHP_EXECUTABLE'));
11 ,array(0 => array('pipe', 'r'), 1 => array('pipe', 'w'))
12 ,$pipes, dirname(__FILE__), array(), array('binary_pipes' => true)
18 $r = array($pipes[1]);
19 $w = array($pipes[0]);
21 $ret = stream_select($r, $w, $e, 1);
22 var_dump($ret === (count($r) + count($w)));
25 $r = array($pipes[1]);
26 $w = array($pipes[0]);
28 $ret = stream_select($r, $w, $e, 1);
29 var_dump($ret === (count($r) + count($w)));
32 foreach($pipes as $pipe) {
35 proc_terminate($proc);
36 if (defined('SIGKILL')) {
37 proc_terminate($proc, SIGKILL);
39 proc_terminate($proc);
44 resource(%d) of type (process)