handle Windows proc_run
This commit is contained in:
3
boot.php
3
boot.php
@@ -1476,6 +1476,9 @@ if(! function_exists('proc_run')) {
|
||||
$args[$x] = escapeshellarg($args[$x]);
|
||||
|
||||
$cmdline = implode($args," ");
|
||||
if(get_config('system','proc_windows'))
|
||||
proc_close(proc_open('start /b ' . $cmdline,array(),$foo));
|
||||
else
|
||||
proc_close(proc_open($cmdline." &",array(),$foo));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user