/PHP-8.4/ext/standard/tests/streams/ |
H A D | proc_open_bug64438.phpt | 13 $descriptors = array(array('pipe', 'r'), array('pipe', 'w'), array('pipe', 'w')); 19 foreach ($pipes as $pipe) { 20 stream_set_blocking($pipe, false); 52 foreach ($r as $pipe) { 53 $type = array_search($pipe, $pipes); 54 $data = fread($pipe, 8192); 55 if (false === $data || feof($pipe)) { 56 $pipeEvents[(int)$pipe][] = "Closing pipe"; 57 fclose($pipe); 75 string(12) "Closing pipe" [all …]
|
H A D | bug61019.phpt | 9 0 => array("pipe", "r"), // stdin is a pipe that the child will read from 10 1 => array("pipe", "w"), // stdout is a pipe that the child will write to 11 2 => array("pipe", "w") // stderr is a pipe that the child will write to
|
H A D | stream_context_set_options_error.phpt | 7 0 => array("pipe", "r"), 8 1 => array("pipe", "w"), 9 2 => array("pipe", "r")
|
H A D | bug46024.phpt | 15 ,array(0 => array('pipe', 'r'), 1 => array('pipe', 'w')) 36 foreach($pipes as $pipe) { 37 fclose($pipe);
|
H A D | bug64770.phpt | 7 0 => array('pipe', 'r'), // stdin 8 1 => array('pipe', 'w'), // stdout 9 2 => array('pipe', 'w'), // strerr
|
H A D | bug60602.phpt | 7 0 => array('pipe', 'r'), // stdin 8 1 => array('pipe', 'w'), // stdout 9 2 => array('pipe', 'w'), // strerr
|
H A D | proc_open_bug60120.phpt | 27 ['pipe', 'r'], 28 ['pipe', 'w'], 29 ['pipe', 'w']
|
/PHP-8.4/ext/standard/tests/general_functions/ |
H A D | proc_open_sockets2.phpt | 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) { [all …]
|
H A D | proc_open_sockets3.phpt | 2 proc_open() with socket and 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))) { 34 ['pipe', 'r'],
|
H A D | proc_open_sockets1.phpt | 23 foreach ($pipes as $pipe) { 24 var_dump(stream_set_blocking($pipe, false)); 36 foreach ($r as $i => $pipe) { 37 if (!is_resource($pipe) || feof($pipe)) { 42 $chunk = @fread($pipe, 8192);
|
H A D | gh12655.phpt | 7 0 => [ "pipe", "r" ], // stdin is a pipe that the child will read from 8 1 => [ "pipe", "w" ], // stdout is a pipe that the child will write to 9 2 => [ "pipe", "w" ], // stderr is a file to write to
|
H A D | bug34794.phpt | 10 $process1 = proc_open('/bin/cat', array(0 => array('pipe', 'r'), 1 =>array('pipe', 'r')), $pipes1); 13 $process2 = proc_open('/bin/cat', array(0 => array('pipe', 'r'), 1 =>array('pipe', 'r')), $pipes2);
|
H A D | proc_open.phpt | 11 0 => array("pipe", "r"), 12 1 => array("pipe", "w"), 13 2 => array("pipe", "w")
|
H A D | bug72306.phpt | 14 0 => array("pipe", "r"), 15 1 => array("pipe", "w"), 16 2 => array("pipe", "r")
|
H A D | bug78569.phpt | 11 $descriptorspec = array(['pipe', 'r'], ['pipe', 'w'], ['pipe', 'w']);
|
H A D | proc_open-mb1.phpt | 17 0 => array("pipe", "r"), 18 1 => array("pipe", "w"), 19 2 => array("pipe", "w")
|
H A D | proc_open-mb0.phpt | 17 0 => array("pipe", "r"), 18 1 => array("pipe", "w"), 19 2 => array("pipe", "w")
|
H A D | bug39322.phpt | 11 0 => array('pipe', 'r'), 12 1 => array('pipe', 'w'), 13 2 => array('pipe', 'w'));
|
H A D | proc_open_null.phpt | 9 $proc = proc_open($cmd, [1 => ['null'], 2 => ['pipe', 'w']], $pipes); 14 $proc = proc_open($cmd, [1 => ['pipe', 'w'], 2 => ['null']], $pipes);
|
H A D | bug44667.phpt | 11 0 => array('pipe', 'rb'), 12 1 => array('pipe', 'wb'),
|
/PHP-8.4/ext/standard/tests/file/ |
H A D | bug60120.phpt | 18 $descriptors = array(array('pipe', 'r'), array('pipe', 'w'), array('pipe', 'w')); 24 foreach ($pipes as $pipe) { 25 stream_set_blocking($pipe, false); 51 die('Failed to write to pipe'); 59 foreach ($r as $pipe) { 60 $type = array_search($pipe, $pipes); 61 $data = fread($pipe, 8192); 62 if (feof($pipe)) { 63 fclose($pipe); 66 die('Failed to read from pipe');
|
H A D | bug69442.phpt | 8 $descriptors = array(array("pty"), array("pty"), array("pty"), array("pipe", "w")); 27 $descriptors = array(array("pty"), array("pty"), array("pty"), array("pipe", "w")); 32 function read_from_pipe($pipe) { 33 $result = fread($pipe, 1000); 34 /* We can't guarantee that everything written to the pipe will be returned by a single call 37 $again = @fread($pipe, 1000); 45 echo 'read from pipe 0: '; 50 echo 'read from pipe 3: '; 57 read from pipe 0: string(5) "foo 59 read from pipe 3: string(3) "42
|
/PHP-8.4/sapi/cli/tests/ |
H A D | bug74600.phpt | 18 0 => array("pipe", "r"), 19 1 => array("pipe", "w"), 20 2 => array("pipe", "w"),
|
H A D | 023.phpt | 26 0 => array("pipe", "r"), 27 1 => array("pipe", "w"), 28 2 => array("pipe", "w"),
|
/PHP-8.4/ext/opcache/tests/jit/ |
H A D | bug81512.phpt | 9 $pipe = [['val1'],['val2'],]; 13 if (!is_pipeline($pipe)) {
|