handle Windows proc_run
This commit is contained in:
parent
9a50454290
commit
1b0dd6f2ec
5
boot.php
5
boot.php
|
@ -1476,7 +1476,10 @@ if(! function_exists('proc_run')) {
|
|||
$args[$x] = escapeshellarg($args[$x]);
|
||||
|
||||
$cmdline = implode($args," ");
|
||||
proc_close(proc_open($cmdline." &",array(),$foo));
|
||||
if(get_config('system','proc_windows'))
|
||||
proc_close(proc_open('start /b ' . $cmdline,array(),$foo));
|
||||
else
|
||||
proc_close(proc_open($cmdline." &",array(),$foo));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue