Home
last modified time | relevance | path

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

123

/PHP-8.1/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.phpt13 $pipes = array();
17 ,$pipes, __DIR__, array(), array()
23 $r = array($pipes[1]);
24 $w = array($pipes[0]);
28 fread($pipes[1], 1);
30 $r = array($pipes[1]);
31 $w = array($pipes[0]);
37 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 $process = proc_open(PHP_BINARY.' -n -f ' . $fl, $descriptorspec, $pipes, NULL, NULL, array("blocki…
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.1/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);
35 $proc = proc_open([$php, '-r', 'echo "Hello World!\n";'], $ds, $pipes);
36 fpassthru($pipes[1]);
44 $proc = proc_open($cmd, $ds, $pipes);
45 fpassthru($pipes[1]);
49 $proc = proc_open($cmd, $ds, $pipes, null, $env);
50 fpassthru($pipes[1]);
64 $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 Dghsa-9fcc-425m-g385_002.phpt23 $proc = proc_open(["cmd.exe", "/c", $batch_file_path, "\"&notepad.exe"], $descriptorspec, $pipes);
25 $proc = proc_open(["cmd.exe ", "/c", $batch_file_path, "\"&notepad.exe"], $descriptorspec, $pipes
27 …oc = proc_open(["cmd.exe. ", "/c", $batch_file_path, "\"&notepad.exe"], $descriptorspec, $pipes);
29 …= proc_open(["cmd.exe. ... ", "/c", $batch_file_path, "\"&notepad.exe"], $descriptorspec, $pipes);
31 …proc_open(["\\cmd.exe. ... ", "/c", $batch_file_path, "\"&notepad.exe"], $descriptorspec, $pipes);
33 $proc = proc_open(["cmd", "/c", $batch_file_path, "\"&notepad.exe"], $descriptorspec, $pipes);
35 $proc = proc_open(["cmd ", "/c", $batch_file_path, "\"&notepad.exe"], $descriptorspec, $pipes);
37 $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
39 …c = proc_open(["\\cmd. ... ", "/c", $batch_file_path, "\"&notepad.exe"], $descriptorspec, $pipes);
H A Dproc_open_pipes3.phpt2 proc_open() with invalid pipes
14 proc_open("$php -n $callee", $spec, $pipes);
18 proc_open("$php -n $callee", $spec, $pipes);
24 proc_open("$php -n $callee", $spec, $pipes);
25 var_dump($pipes);
28 proc_open("$php -n $callee", $spec, $pipes);
29 var_dump($pipes);
H A Dproc_open_sockets1.phpt17 $proc = proc_open($cmd, $spec, $pipes);
19 foreach ($pipes as $pipe) {
23 while ($pipes) {
24 $r = $pipes;
34 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.phpt23 $proc = proc_open([$batch_file_path . ".", "\"&notepad.exe"], $descriptorspec, $pipes);
25 $proc = proc_open([$batch_file_path . " ", "\"&notepad.exe"], $descriptorspec, $pipes);
27 $proc = proc_open([$batch_file_path . ". ", "\"&notepad.exe"], $descriptorspec, $pipes);
29 $proc = proc_open([$batch_file_path . ". ... ", "\"&notepad.exe"], $descriptorspec, $pipes);
31 $proc = proc_open([$batch_file_path . ". ... . ", "\"&notepad.exe"], $descriptorspec, $pipes);
33 $proc = proc_open([$batch_file_path . ". ... . .", "\"&notepad.exe"], $descriptorspec, $pipes);
35 proc_open([$batch_file_path . ". .\\.. . .", "\"&notepad.exe"], $descriptorspec, $pipes);
/PHP-8.1/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);
27 $pipes = array();
29 $process = proc_open($cmd, $descriptors, $pipes);
43 $data0 = read_from_pipe($pipes[0]);
46 fclose($pipes[0]);
48 $data3 = read_from_pipe($pipes[3]);
51 fclose($pipes[3]);
H A Dbug60120.phpt25 $process = proc_open($cmd, $descriptors, $pipes, getcwd(), array(), $options);
27 foreach ($pipes as $pipe) {
30 $writePipes = array($pipes[0]);
34 unset($pipes[0]);
37 while ($pipes || $writePipes) {
38 $r = $pipes;
63 $type = array_search($pipe, $pipes);
67 unset($pipes[$type]);
/PHP-8.1/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.1/sapi/cli/tests/
H A Dbug74600.phpt21 $pipes = array();
22 $proc = proc_open("$php -c $ini_file -r 'echo \"okey\";'", $desc, $pipes);
26 var_dump(stream_get_contents($pipes[1]));
27 var_dump(stream_get_contents($pipes[2]));

Completed in 15 milliseconds

123