Replace system.proc_windows config by PHP_OS test

This commit is contained in:
Hypolite Petovan 2018-07-02 07:47:42 -04:00
父節點 a380bcd1c1
當前提交 89e4629c16
共有 1 個文件被更改,包括 1 次插入1 次删除

查看文件

@ -878,7 +878,7 @@ class App
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());
} else {
$resource = proc_open($cmdline . ' &', [], $foo, $this->get_basepath());