--TEST-- ssh2_stream_select() - Tests opening a shell and using stream_select --SKIPIF-- --FILE-- 0) { while($line = fgets($shell)) { echo $line; } } $elapsed = time() - $start; var_dump(($elapsed < $timeout)); --EXPECTF-- bool(true) resource(%d) of type (stream) %a %a %a howdy %sbool(true)