--TEST-- Bug #51800 proc_open on Windows hangs forever, the right way to do it --SKIPIF-- --FILE-- array("pipe", "rb"), // stdin 1 => array("pipe", "wb"), // stdout 2 => array("pipe", "wb") // stderr ); /* create the proc file */ $r = file_put_contents($callee, ' $status, "stdout" => $stdout, "stderr" => $stderr, ), strlen($stdout), strlen($stderr)); ?> --CLEAN-- --EXPECTF-- array(3) { ["status"]=> int(0) ["stdout"]=> string(10000) "a%s" ["stderr"]=> string(10000) "b%s" } int(10000) int(10000)