Home
last modified time | relevance | path

Searched refs:pipe (Results 1 – 25 of 72) sorted by relevance

123

/PHP-8.4/ext/standard/tests/streams/
H A Dproc_open_bug64438.phpt13 $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 Dbug61019.phpt9 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 Dstream_context_set_options_error.phpt7 0 => array("pipe", "r"),
8 1 => array("pipe", "w"),
9 2 => array("pipe", "r")
H A Dbug46024.phpt15 ,array(0 => array('pipe', 'r'), 1 => array('pipe', 'w'))
36 foreach($pipes as $pipe) {
37 fclose($pipe);
H A Dbug64770.phpt7 0 => array('pipe', 'r'), // stdin
8 1 => array('pipe', 'w'), // stdout
9 2 => array('pipe', 'w'), // strerr
H A Dbug60602.phpt7 0 => array('pipe', 'r'), // stdin
8 1 => array('pipe', 'w'), // stdout
9 2 => array('pipe', 'w'), // strerr
H A Dproc_open_bug60120.phpt27 ['pipe', 'r'],
28 ['pipe', 'w'],
29 ['pipe', 'w']
/PHP-8.4/ext/standard/tests/general_functions/
H A Dproc_open_sockets2.phpt6 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 Dproc_open_sockets3.phpt2 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 Dproc_open_sockets1.phpt23 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 Dgh12655.phpt7 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 Dbug34794.phpt10 $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 Dproc_open.phpt11 0 => array("pipe", "r"),
12 1 => array("pipe", "w"),
13 2 => array("pipe", "w")
H A Dbug72306.phpt14 0 => array("pipe", "r"),
15 1 => array("pipe", "w"),
16 2 => array("pipe", "r")
H A Dbug78569.phpt11 $descriptorspec = array(['pipe', 'r'], ['pipe', 'w'], ['pipe', 'w']);
H A Dproc_open-mb1.phpt17 0 => array("pipe", "r"),
18 1 => array("pipe", "w"),
19 2 => array("pipe", "w")
H A Dproc_open-mb0.phpt17 0 => array("pipe", "r"),
18 1 => array("pipe", "w"),
19 2 => array("pipe", "w")
H A Dbug39322.phpt11 0 => array('pipe', 'r'),
12 1 => array('pipe', 'w'),
13 2 => array('pipe', 'w'));
H A Dproc_open_null.phpt9 $proc = proc_open($cmd, [1 => ['null'], 2 => ['pipe', 'w']], $pipes);
14 $proc = proc_open($cmd, [1 => ['pipe', 'w'], 2 => ['null']], $pipes);
H A Dbug44667.phpt11 0 => array('pipe', 'rb'),
12 1 => array('pipe', 'wb'),
/PHP-8.4/ext/standard/tests/file/
H A Dbug60120.phpt18 $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 Dbug69442.phpt8 $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 Dbug74600.phpt18 0 => array("pipe", "r"),
19 1 => array("pipe", "w"),
20 2 => array("pipe", "w"),
H A D023.phpt26 0 => array("pipe", "r"),
27 1 => array("pipe", "w"),
28 2 => array("pipe", "w"),
/PHP-8.4/ext/opcache/tests/jit/
H A Dbug81512.phpt9 $pipe = [['val1'],['val2'],];
13 if (!is_pipeline($pipe)) {

Completed in 41 milliseconds

123