/PHP-7.1/ext/standard/tests/streams/ |
H A D | bug61019.phpt | 17 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); 30 $tmp_stdin=stream_get_contents($pipes[1]); 45 $tmp_stdin=stream_get_contents($pipes[1]); 56 fclose ($pipes[0]); 57 fclose ($pipes[1]); [all …]
|
H A D | proc_open_bug51800_right.phpt | 12 $pipes = array(); 37 $process = proc_open($cmd, $descriptors, $pipes); 41 fclose($pipes[0]); 43 while (!feof($pipes[1]) || !feof($pipes[2])) { 44 $stdout .= fread($pipes[1], 1024); 45 $stderr .= fread($pipes[2], 1024); 47 fclose($pipes[1]); 48 fclose($pipes[2]);
|
H A D | bug46024.phpt | 8 $pipes = array(); 12 ,$pipes, dirname(__FILE__), array(), array('binary_pipes' => true) 18 $r = array($pipes[1]); 19 $w = array($pipes[0]); 23 fread($pipes[1], 1); 25 $r = array($pipes[1]); 26 $w = array($pipes[0]); 32 foreach($pipes as $pipe) {
|
H A D | proc_open_bug51800_right2.phpt | 12 $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 D | proc_open_bug60120.phpt | 17 $process = proc_open($cmd, $descriptors, $pipes, getcwd(), array(), $options); 19 foreach ($pipes as $pipe) { 22 $writePipes = array($pipes[0]); 26 unset($pipes[0]); 28 while ($pipes || $writePipes) { 29 $r = $pipes; 52 $type = array_search($pipe, $pipes); 57 unset($pipes[$type]);
|
H A D | proc_open_bug64438.phpt | 17 $process = proc_open($cmd, $descriptors, $pipes, getcwd(), array(), $options); 19 foreach ($pipes as $pipe) { 22 $writePipes = array($pipes[0]); 26 unset($pipes[0]); 28 while ($pipes || $writePipes) { 29 $r = $pipes; 52 $type = array_search($pipe, $pipes); 57 unset($pipes[$type]);
|
H A D | bug72853.phpt | 17 $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 D | proc_open_bug51800.phpt | 11 pipes have to be read/written simultaneously 28 $pipes = array(); 53 $process = proc_open($cmd, $descriptors, $pipes); 57 fclose($pipes[0]); 59 while (!feof($pipes[1])) 60 $stdout .= fread($pipes[1], 1024); 61 fclose($pipes[1]); 63 while (!feof($pipes[2])) 64 $stderr .= fread($pipes[2], 1024); 65 fclose($pipes[2]);
|
H A D | proc_open_bug69900.phpt | 24 $pipes = array(); 26 $process = proc_open(PHP_BINARY.' -n -f ' . $fl, $descriptorspec, $pipes, NULL, NULL, array("blocki… 29 fwrite($pipes[0], "hello$i\r\n"); 30 fflush($pipes[0]); 33 $s = fgets($pipes[1]); 40 fclose($pipes[0]); 41 fclose($pipes[1]);
|
H A D | bug64770.phpt | 2 Bug #64770 stream_select() fails with pipes from proc_open() 15 $p = proc_open($cmd, $descs, $pipes, '.', NULL, $other_opts); 22 $n = stream_select($pipes, $w, $e, 300); 32 $line = fread($pipes[1], 8192);
|
H A D | bug60602.phpt | 15 $p = proc_open($cmd, $descs, $pipes, '.', $environment); 22 $n = stream_select($pipes, $w, $e, 300); 32 $line = fread($pipes[1], 8192);
|
/PHP-7.1/ext/standard/tests/general_functions/ |
H A D | bug44667.phpt | 2 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 D | proc_open_pipes3.phpt | 2 proc_open() with invalid pipes 16 proc_open("$php -n $callee", $spec, $pipes); 19 proc_open("$php -n $callee", $spec, $pipes); 22 proc_open("$php -n $callee", $spec, $pipes); 23 var_dump($pipes); 26 proc_open("$php -n $callee", $spec, $pipes); 27 var_dump($pipes);
|
H A D | proc_open_pipes2.phpt | 2 proc_open() with no pipes 12 proc_open("$php -n $callee", $spec, $pipes); 15 var_dump($pipes);
|
H A D | proc_open-win32-mb0.phpt | 26 $pipes, 34 while (!feof($pipes[1])) { 35 $out .= fread($pipes[1], 1024);
|
H A D | proc_open-win32-mb1.phpt | 26 $pipes 31 while (!feof($pipes[1])) { 32 $out .= fread($pipes[1], 1024);
|
H A D | bug72306.phpt | 11 $pipes = array(); 18 $process = proc_open('nothing', $description, $pipes, NULL, $env);
|
H A D | bug39322.phpt | 15 $pipes = array(); 17 $process = proc_open('/bin/sleep 120', $descriptors, $pipes);
|
H A D | proc_open_pipes1.phpt | 2 proc_open() with > 16 pipes 14 proc_open("$php -n $callee", $spec, $pipes); 17 var_dump($pipes);
|
/PHP-7.1/ext/standard/tests/file/ |
H A D | proc_open01.phpt | 5 $pipes = array(1, 2, 3); 6 $orig_pipes = $pipes; 14 $pipes, getcwd(), array(), array('binary_pipes' => true) 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 D | bug60120.phpt | 28 $process = proc_open($cmd, $descriptors, $pipes, getcwd(), array(), $options); 30 foreach ($pipes as $pipe) { 33 $writePipes = array($pipes[0]); 37 unset($pipes[0]); 39 while ($pipes || $writePipes) { 40 $r = $pipes; 63 $type = array_search($pipe, $pipes); 67 unset($pipes[$type]);
|
H A D | bug69442.phpt | 9 $pipes = array(); 10 $process = proc_open('echo "foo";', $descriptors, $pipes); 27 $pipes = array(); 29 $process = proc_open($cmd, $descriptors, $pipes); 31 foreach ($pipes as $type => $pipe) {
|
/PHP-7.1/sapi/cli/tests/ |
H A D | bug74600.phpt | 21 $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]));
|
H A D | 023.phpt | 29 $pipes = array(); 30 $proc = proc_open("$php -c $ini_file -r 'echo ini_get(\"memory_limit\");'", $desc, $pipes); 34 var_dump(stream_get_contents($pipes[1])); 35 var_dump(stream_get_contents($pipes[2]));
|
/PHP-7.1/sapi/phpdbg/ |
H A D | create-test.php | 63 …("$phpdbg $pass_options $file -- $cmdargv", [["pipe", "r"], ["pipe", "w"], ["pipe", "w"]], $pipes); 73 $r = [$pipes[1], STDIN]; 80 fwrite($pipes[0], $in); 88 if (feof($pipes[1])) { 91 $output .= $c = fgetc($pipes[1]);
|