3 function test_me($desc) {
5 $process = proc_open(__DIR__
."/test_proc_open.sh", $desc, $pipes);
6 $status = proc_get_status($process);
7 pcntl_waitpid($status["pid"], $child_status);
10 $desc = array(array("file", "php://stdin", "r"));
13 $desc = array(array("file", __DIR__
. "/test_proc_open.txt", "r"));
16 $desc = array(array("file", __DIR__
, "r"));
19 $desc = array(array("file", "php://fd/0", "r"));
22 $desc = array(array("file", "php://temp", "r"));
25 $desc = array(array("file", "php://memory", "r"));