Skip to content

Fall back to full string instead of $mode on PHP < 7#4853

Merged
schlessera merged 2 commits intomasterfrom
4852-php-uname-mode-fallback
Jul 19, 2018
Merged

Fall back to full string instead of $mode on PHP < 7#4853
schlessera merged 2 commits intomasterfrom
4852-php-uname-mode-fallback

Conversation

@schlessera
Copy link
Copy Markdown
Member

Fixes #4852

@schlessera schlessera added bug command:cli-info Related to 'cli info' command labels Jul 19, 2018
@schlessera schlessera added this to the 2.0.0 milestone Jul 19, 2018
@schlessera schlessera merged commit ade39da into master Jul 19, 2018
@schlessera schlessera deleted the 4852-php-uname-mode-fallback branch July 19, 2018 01:23
$shell = getenv( 'SHELL' );
// php_uname() $mode argument was only added with PHP 7.0+. Fall back to
// entire string for older versions.
$system_os = PHP_MAJOR_VERSION >= 7
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the comparison be reversed here, ie. PHP_MAJOR_VERSION < 7?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug command:cli-info Related to 'cli info' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants