Skip to content

Commit 8879a5f

Browse files
committed
bug symfony#16053 [Console] use PHP_OS instead of php_uname('s') (xabbuh)
This PR was merged into the 2.3 branch. Discussion ---------- [Console] use PHP_OS instead of php_uname('s') | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#15058 | License | MIT | Doc PR | The php_uname() function may be disabled for security reasons. Commits ------- 40e0dc8 use PHP_OS instead of php_uname('s')
2 parents 351bccb + 40e0dc8 commit 8879a5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Output/ConsoleOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ protected function hasStderrSupport()
125125
*/
126126
private function isRunningOS400()
127127
{
128-
return 'OS400' === php_uname('s');
128+
return 'OS400' === PHP_OS;
129129
}
130130

131131
/**

0 commit comments

Comments
 (0)