Lines Matching refs:pipe
6 function poll($pipe, $read = true)
8 $r = ($read == true) ? [$pipe] : null;
9 $w = ($read == false) ? [$pipe] : null;
17 function read_pipe($pipe): string
19 poll($pipe);
21 if (false === ($chunk = @fread($pipe, 8192))) {
28 function write_pipe($pipe, $data)
30 poll($pipe, false);
32 if (false == @fwrite($pipe, $data)) {
49 foreach ($pipes as $pipe) {
50 var_dump(stream_set_blocking($pipe, false));