[Console] Add additional ways to detect OS400 platform

This commit is contained in:
John Kary 2015-10-02 21:52:41 -05:00 committed by Fabien Potencier
parent 513fc315d6
commit 96a4071891
1 changed files with 7 additions and 1 deletions

View File

@ -125,7 +125,13 @@ class ConsoleOutput extends StreamOutput implements ConsoleOutputInterface
*/
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');
}
/**