Php proc_open在windows 7中运行时间过长

Php proc_open在windows 7中运行时间过长,php,proc-open,elfinder,Php,Proc Open,Elfinder,我正在使用,但它在Windows7中不起作用。原因是proc\u open()函数执行时间太长。例如,一个简单的命令,如tar--version使用proc\u open()执行25秒。 以下是代码: $command = 'tar --version'; $descriptorspec = array( array('pipe', 'r'), array('pipe', 'w'), array('pipe', 'w'), ); $pipes = null; $proce

我正在使用,但它在Windows7中不起作用。原因是
proc\u open()
函数执行时间太长。例如,一个简单的命令,如
tar--version
使用
proc\u open()
执行25秒。 以下是代码:

$command = 'tar --version';
$descriptorspec = array(
    array('pipe', 'r'),
    array('pipe', 'w'),
    array('pipe', 'w'),
);
$pipes = null;
$process = proc_open($command, $descriptorspec, $pipes, null, null);

我怎样才能解决这个问题?

真不敢相信。展示一个(简单的)需要25秒的例子。我已经更新了我将使用