Replace system.proc_windows config by PHP_OS test
This commit is contained in:
parent
a380bcd1c1
commit
89e4629c16
1 changed files with 1 additions and 1 deletions
|
@ -878,7 +878,7 @@ class App
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Config::get('system', 'proc_windows')) {
|
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
|
||||||
$resource = proc_open('cmd /c start /b ' . $cmdline, [], $foo, $this->get_basepath());
|
$resource = proc_open('cmd /c start /b ' . $cmdline, [], $foo, $this->get_basepath());
|
||||||
} else {
|
} else {
|
||||||
$resource = proc_open($cmdline . ' &', [], $foo, $this->get_basepath());
|
$resource = proc_open($cmdline . ' &', [], $foo, $this->get_basepath());
|
||||||
|
|
Loading…
Reference in a new issue