8000 use PHP_OS instead of php_uname('s') · symfony/symfony@40e0dc8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 40e0dc8

Browse files
committed
use PHP_OS instead of php_uname('s')
The php_uname() function may be disabled for security reasons.
1 parent 74af02a commit 40e0dc8

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)
0