From 40e0dc80842985032a1b83b0527e046254cbbfb3 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 1 Oct 2015 19:06:54 +0200 Subject: [PATCH] use PHP_OS instead of php_uname('s') The php_uname() function may be disabled for security reasons. --- src/Symfony/Component/Console/Output/ConsoleOutput.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Console/Output/ConsoleOutput.php b/src/Symfony/Component/Console/Output/ConsoleOutput.php index 8e6821e5e3..d71f062dfb 100644 --- a/src/Symfony/Component/Console/Output/ConsoleOutput.php +++ b/src/Symfony/Component/Console/Output/ConsoleOutput.php @@ -125,7 +125,7 @@ class ConsoleOutput extends StreamOutput implements ConsoleOutputInterface */ private function isRunningOS400() { - return 'OS400' === php_uname('s'); + return 'OS400' === PHP_OS; } /**