Home
last modified time | relevance | path

Searched refs:pipes (Results 1 – 25 of 73) sorted by relevance

123

/PHP-8.4/ext/standard/tests/streams/
H A Dbug61019.phpt17 stream_set_blocking($pipes[0],false);
18 stream_set_blocking($pipes[1],false);
19 stream_set_blocking($pipes[2],false);
20 stream_set_write_buffer($pipes[0],0);
21 stream_set_read_buffer($pipes[1],0);
22 stream_set_read_buffer($pipes[2],0);
45 $tmp_stdin=stream_get_contents($pipes[1]);
50 $tmp_stderr=stream_get_contents($pipes[2]);
56 fclose ($pipes[0]);
57 fclose ($pipes[1]);
[all …]
H A Dproc_open_bug60120.phpt31 $pipes,
46 fwrite($pipes[0], str_repeat('*', 10000));
47 fclose($pipes[0]);
49 stream_set_blocking($pipes[1], false);
50 stream_set_blocking($pipes[2], false);
58 $r = [$pipes[1], $pipes[2]];
72 array_search($ready, $pipes)
85 fread($pipes[1], 1),
86 fread($pipes[2], 1));
88 fclose($pipes[1]);
[all …]
H A Dproc_open_bug51800_right.phpt18 $pipes = array();
43 $process = proc_open($cmd, $descriptors, $pipes);
47 fclose($pipes[0]);
49 while (!feof($pipes[1]) || !feof($pipes[2])) {
50 $stdout .= fread($pipes[1], 1024);
51 $stderr .= fread($pipes[2], 1024);
53 fclose($pipes[1]);
54 fclose($pipes[2]);
H A Dproc_open_bug51800_right2.phpt12 $pipes = array();
43 $process = proc_open($cmd, $descriptors, $pipes);
47 fclose($pipes[0]);
49 while (!feof($pipes[1]) || !feof($pipes[2])) {
50 $stdout .= fread($pipes[1], 1024);
51 $stderr .= fread($pipes[2], 1024);
53 fclose($pipes[1]);
54 fclose($pipes[2]);
H A Dbug46024.phpt12 $pipes = array();
16 ,$pipes, __DIR__, array(), array()
22 $r = array($pipes[1]);
23 $w = array($pipes[0]);
27 fread($pipes[1], 1);
29 $r = array($pipes[1]);
30 $w = array($pipes[0]);
36 foreach($pipes as $pipe) {
H A Dbug72853.phpt17 $p = proc_open("ls", $descs, $pipes, '.', NULL, NULL);
19 stream_set_blocking($pipes[1], false);
20 var_dump(stream_get_meta_data($pipes[1]));
21 stream_set_blocking($pipes[1], true);
22 while ($outs = fgets($pipes[1], 1024)) {
24 var_dump(stream_get_meta_data($pipes[1]));
H A Dproc_open_bug64438.phpt17 $process = proc_open($cmd, $descriptors, $pipes, getcwd(), array(), $options);
19 foreach ($pipes as $pipe) {
22 $writePipes = array($pipes[0]);
26 unset($pipes[0]);
29 while ($pipes || $writePipes) {
30 $r = $pipes;
53 $type = array_search($pipe, $pipes);
58 unset($pipes[$type]);
H A Dproc_open_bug69900.phpt26 $pipes = array();
28 …P_EXECUTABLE_ESCAPED').' -n -f ' . escapeshellarg($fl), $descriptorspec, $pipes, NULL, NULL, array…
32 fwrite($pipes[0], "hello$i\r\n");
33 fflush($pipes[0]);
36 $s = fgets($pipes[1]);
47 fclose($pipes[0]);
48 fclose($pipes[1]);
/PHP-8.4/ext/standard/tests/general_functions/
H A Dbug44667.phpt2 Bug #44667 (proc_open() does not handle pipes with the mode 'wb' correctly)
8 $pipes = array();
15 $proc = proc_open('cat', $descriptor_spec, $pipes);
17 fwrite($pipes[0], 'Hello', 5);
18 fflush($pipes[0]);
19 fclose($pipes[0]);
21 $result = fread($pipes[1], 5);
22 fclose($pipes[1]);
H A Dproc_open_null.phpt2 Null pipes in proc_open()
9 $proc = proc_open($cmd, [1 => ['null'], 2 => ['pipe', 'w']], $pipes);
10 var_dump($pipes);
11 var_dump(stream_get_contents($pipes[2]));
14 $proc = proc_open($cmd, [1 => ['pipe', 'w'], 2 => ['null']], $pipes);
15 var_dump($pipes);
16 var_dump(stream_get_contents($pipes[1]));
H A Dproc_open_redirect.phpt8 proc_open([$php], [['redirect']], $pipes);
14 proc_open([$php], [['redirect', 'foo']], $pipes);
20 proc_open([$php], [['redirect', 42]], $pipes);
27 $proc = proc_open($cmd, [1 => ['pipe', 'w'], 2 => ['redirect', 1]], $pipes);
28 var_dump($pipes);
29 var_dump(stream_get_contents($pipes[1]));
34 $proc = proc_open($cmd, [1 => ['file', $fileName, 'w'], 2 => ['redirect', 1]], $pipes);
35 var_dump($pipes);
42 $proc = proc_open($cmd, [1 => $file, 2 => ['redirect', 1]], $pipes);
43 var_dump($pipes);
[all …]
H A Dproc_open_sockets3.phpt38 $proc = proc_open($cmd, $spec, $pipes);
40 var_dump(stream_set_blocking($pipes[1], false));
42 printf("STDOUT << %s\n", read_pipe($pipes[1]));
43 printf("STDOUT << %s\n", read_pipe($pipes[1]));
45 fwrite($pipes[0], 'done');
46 fclose($pipes[0]);
48 printf("STDOUT << %s\n", read_pipe($pipes[1]));
H A Dproc_open_array.phpt15 proc_open([], $ds, $pipes);
22 proc_open(["php\0oops"], $ds, $pipes);
29 proc_open(["php", "array\0oops"], $ds, $pipes);
36 proc_open([""], $ds, $pipes);
43 fpassthru($pipes[1]);
51 $proc = proc_open($cmd, $ds, $pipes);
52 fpassthru($pipes[1]);
56 $proc = proc_open($cmd, $ds, $pipes, null, $env);
57 fpassthru($pipes[1]);
71 $proc = proc_open($cmd, $ds, $pipes);
[all …]
H A Dproc_open_sockets2.phpt47 $proc = proc_open($cmd, $spec, $pipes);
49 foreach ($pipes as $pipe) {
53 printf("STDOUT << %s\n", read_pipe($pipes[1]));
54 printf("STDOUT << %s\n", read_pipe($pipes[1]));
56 write_pipe($pipes[0], 'done');
57 fclose($pipes[0]);
59 printf("STDOUT << %s\n", read_pipe($pipes[1]));
H A Dproc_open_pipes3.phpt2 proc_open() with invalid pipes
15 proc_open("$php -n $callee_escaped", $spec, $pipes);
19 proc_open("$php -n $callee_escaped", $spec, $pipes);
25 proc_open("$php -n $callee_escaped", $spec, $pipes);
26 var_dump($pipes);
29 proc_open("$php -n $callee_escaped", $spec, $pipes);
30 var_dump($pipes);
H A Dghsa-9fcc-425m-g385_002.phpt26 $proc = proc_open(["cmd.exe", "/c", $batch_file_path, "\"&notepad.exe"], $descriptorspec, $pipes);
28 $proc = proc_open(["cmd.exe ", "/c", $batch_file_path, "\"&notepad.exe"], $descriptorspec, $pipes
30 …oc = proc_open(["cmd.exe. ", "/c", $batch_file_path, "\"&notepad.exe"], $descriptorspec, $pipes);
32 …= proc_open(["cmd.exe. ... ", "/c", $batch_file_path, "\"&notepad.exe"], $descriptorspec, $pipes);
34 …proc_open(["\\cmd.exe. ... ", "/c", $batch_file_path, "\"&notepad.exe"], $descriptorspec, $pipes);
36 $proc = proc_open(["cmd", "/c", $batch_file_path, "\"&notepad.exe"], $descriptorspec, $pipes);
38 $proc = proc_open(["cmd ", "/c", $batch_file_path, "\"&notepad.exe"], $descriptorspec, $pipes);
40 $proc = proc_open(["cmd. ", "/c", $batch_file_path, "\"&notepad.exe"], $descriptorspec, $pipes);
41 $proc = proc_open(["cmd. ... ", "/c", $batch_file_path, "\"&notepad.exe"], $descriptorspec, $pipes
42 …c = proc_open(["\\cmd. ... ", "/c", $batch_file_path, "\"&notepad.exe"], $descriptorspec, $pipes);
H A Dproc_open_sockets1.phpt21 $proc = proc_open($cmd, $spec, $pipes);
23 foreach ($pipes as $pipe) {
27 while ($pipes) {
28 $r = $pipes;
38 unset($pipes[$i]);
H A Dproc_open_pipes2.phpt2 proc_open() with no pipes
10 proc_open("$php -n $callee", $spec, $pipes);
13 var_dump($pipes);
H A Dghsa-9fcc-425m-g385_001.phpt26 $proc = proc_open([$batch_file_path . ".", "\"&notepad.exe"], $descriptorspec, $pipes);
28 $proc = proc_open([$batch_file_path . " ", "\"&notepad.exe"], $descriptorspec, $pipes);
30 $proc = proc_open([$batch_file_path . ". ", "\"&notepad.exe"], $descriptorspec, $pipes);
32 $proc = proc_open([$batch_file_path . ". ... ", "\"&notepad.exe"], $descriptorspec, $pipes);
34 $proc = proc_open([$batch_file_path . ". ... . ", "\"&notepad.exe"], $descriptorspec, $pipes);
36 $proc = proc_open([$batch_file_path . ". ... . .", "\"&notepad.exe"], $descriptorspec, $pipes);
38 proc_open([$batch_file_path . ". .\\.. . .", "\"&notepad.exe"], $descriptorspec, $pipes);
/PHP-8.4/ext/standard/tests/file/
H A Dproc_open01.phpt5 $pipes = array(1, 2, 3);
6 $orig_pipes = $pipes;
14 $pipes, getcwd(), array(), array()
19 var_dump($pipes);
20 stream_set_blocking($pipes[1], FALSE);
22 fwrite($pipes[0], $test_string);
23 fflush($pipes[0]);
24 fclose($pipes[0]);
32 $read_fds = array($pipes[1]);
44 $buf = fread($pipes[1], 1024);
[all …]
H A Dbug69442.phpt9 $pipes = array();
10 $process = proc_open('echo "foo";', $descriptors, $pipes);
28 $pipes = array();
30 $process = proc_open($cmd, $descriptors, $pipes);
44 $data0 = read_from_pipe($pipes[0]);
47 fclose($pipes[0]);
49 $data3 = read_from_pipe($pipes[3]);
52 fclose($pipes[3]);
H A Dbug60120.phpt22 $process = proc_open($cmd, $descriptors, $pipes, getcwd(), array(), $options);
24 foreach ($pipes as $pipe) {
27 $writePipes = array($pipes[0]);
31 unset($pipes[0]);
34 while ($pipes || $writePipes) {
35 $r = $pipes;
60 $type = array_search($pipe, $pipes);
64 unset($pipes[$type]);
/PHP-8.4/ext/readline/tests/
H A Dbug77812-libedit.phpt15 $proc = proc_open("$php $ini -a", $descriptorspec, $pipes);
17 fwrite($pipes[0], "echo <<<FOO\n bar\n FOO;\n");
18 fwrite($pipes[0], "print(<<<FOO\nxx\nFOO);\n");
19 fwrite($pipes[0], "echo <<<FOO\n xxx\n FOO;\nFOO\n;\n");
20 fwrite($pipes[0], "echo <<<FOO\nFOOL\nFOO\n,1;\n");
21 fwrite($pipes[0], "echo <<<FOO\nFOO4\nFOO\n,2;\n");
22 fclose($pipes[0]);
H A Dbug77812-readline.phpt15 $proc = proc_open("$php $ini -a", $descriptorspec, $pipes);
16 fwrite($pipes[0], "echo <<<FOO\n bar\n FOO;\n");
17 fwrite($pipes[0], "print(<<<FOO\nxx\nFOO);\n");
18 fwrite($pipes[0], "echo <<<FOO\n xxx\n FOO;\nFOO\n;\n");
19 fwrite($pipes[0], "echo <<<FOO\nFOOL\nFOO\n,1;\n");
20 fwrite($pipes[0], "echo <<<FOO\nFOO4\nFOO\n,2;\n");
21 fclose($pipes[0]);
/PHP-8.4/benchmark/
H A Dshared.php10 $pipes = null;
14 $processHandle = proc_open($cmd, $descriptorSpec, $pipes, $cwd ?? getcwd(), null);
16 $stdin = $pipes[0];
17 $stdout = $pipes[1];
18 $stderr = $pipes[2];

Completed in 40 milliseconds

123