--TEST-- Bug #51800 proc_open on Windows hangs forever, the right way to do it with more data --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)); ?> ===DONE=== --CLEAN-- --EXPECTF-- array(3) { ["status"]=> int(0) ["stdout"]=> string(1000000) "a%s" ["stderr"]=> string(1000000) "b%s" } int(1000000) int(1000000) ===DONE===