Skip to content

Conversation

thomasplevy
Copy link
Contributor

This PR adds a check to the get_php_binary() utility method so that when running wp-cli as a PHAR bundle the wp --info command will always output the shell's current PHP version.

Fixes #5615

I believe this is a safe method of determining whether or not the wp-cli binary is a PHAR or not but if there's a preferred or better method I'll switch this to that.

Existing tests pass and I didn't add any new ones due to the usage of the constant.

@thomasplevy thomasplevy requested a review from a team as a code owner September 11, 2022 19:29
Copy link
Member

@danielbachhuber danielbachhuber left a comment

Choose a reason for hiding this comment

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

Thanks for the pull request, @thomasplevy !

One small comment for you.

Copy link
Member

@danielbachhuber danielbachhuber left a comment

Choose a reason for hiding this comment

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

🎉

@thomasplevy
Copy link
Contributor Author

cool cool cool 🚢

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

Successfully merging this pull request may close these issues.

wp --info prints WP_CLI_PHP variable instead of the used interpreter
2 participants