[Console] Add additional ways to detect OS400 platform
This commit is contained in:
parent
513fc315d6
commit
96a4071891
@ -125,7 +125,13 @@ class ConsoleOutput extends StreamOutput implements ConsoleOutputInterface
|
|||||||
*/
|
*/
|
||||||
private function isRunningOS400()
|
private function isRunningOS400()
|
||||||
{
|
{
|
||||||
return 'OS400' === PHP_OS;
|
$checks = array(
|
||||||
|
function_exists('php_uname') ? php_uname('s') : '',
|
||||||
|
getenv('OSTYPE'),
|
||||||
|
PHP_OS,
|
||||||
|
);
|
||||||
|
|
||||||
|
return false !== stristr(implode(';', $checks), 'OS400');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user