/PHP-8.2/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 | bug46024.phpt | 16 ,array(0 => array('pipe', 'r'), 1 => array('pipe', 'w')) 37 foreach($pipes as $pipe) { 38 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.2/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 | 19 foreach ($pipes as $pipe) { 20 var_dump(stream_set_blocking($pipe, false)); 32 foreach ($r as $i => $pipe) { 33 if (!is_resource($pipe) || feof($pipe)) { 38 $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 | 16 0 => array("pipe", "r"), 17 1 => array("pipe", "w"), 18 2 => array("pipe", "w")
|
H A D | proc_open-mb0.phpt | 16 0 => array("pipe", "r"), 17 1 => array("pipe", "w"), 18 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.2/ext/standard/tests/file/ |
H A D | bug60120.phpt | 21 $descriptors = array(array('pipe', 'r'), array('pipe', 'w'), array('pipe', 'w')); 27 foreach ($pipes as $pipe) { 28 stream_set_blocking($pipe, false); 54 die('Failed to write to pipe'); 62 foreach ($r as $pipe) { 63 $type = array_search($pipe, $pipes); 64 $data = fread($pipe, 8192); 65 if (feof($pipe)) { 66 fclose($pipe); 69 die('Failed to read from pipe');
|
H A D | bug69442.phpt | 8 $descriptors = array(array("pty"), array("pty"), array("pty"), array("pipe", "w")); 26 $descriptors = array(array("pty"), array("pty"), array("pty"), array("pipe", "w")); 31 function read_from_pipe($pipe) { 32 $result = fread($pipe, 1000); 33 /* We can't guarantee that everything written to the pipe will be returned by a single call 36 $again = @fread($pipe, 1000); 44 echo 'read from pipe 0: '; 49 echo 'read from pipe 3: '; 56 read from pipe 0: string(5) "foo 58 read from pipe 3: string(3) "42
|
H A D | popen_pclose_basic-win32-mb.phpt | 10 echo "*** Testing popen(): reading from the pipe ***\n"; 19 echo "*** Testing popen(): writing to the pipe ***\n"; 53 *** Testing popen(): reading from the pipe *** 55 *** Testing popen(): writing to the pipe ***
|
/PHP-8.2/sapi/cli/tests/ |
H A D | bug74600.phpt | 17 0 => array("pipe", "r"), 18 1 => array("pipe", "w"), 19 2 => array("pipe", "w"),
|
H A D | 023.phpt | 25 0 => array("pipe", "r"), 26 1 => array("pipe", "w"), 27 2 => array("pipe", "w"),
|
/PHP-8.2/ext/opcache/tests/jit/ |
H A D | bug81512.phpt | 10 $pipe = [['val1'],['val2'],]; 14 if (!is_pipeline($pipe)) {
|