Implemented the usage of the system PHP interpreter#1098
Merged
Conversation
Contributor
Author
|
@theofidry, @markwu please take a look if you're interested. |
theofidry
approved these changes
Dec 18, 2019
Member
|
I'm all for this idea, and the implementation looks good to me. the only suggestion is we might need to increase the major version since this is a huge change since we are requiring a up-to-date PHP now. |
Contributor
Author
|
@jhdxr in its current state, it only emits a deprecation warning, so it's safe to merge it as is. I'm still on the fence about tagging
This is what necessitates dropping the support for old PHP versions and this is what I'd gladly call |
jhdxr
approved these changes
Dec 19, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The full new feature is implemented in the first commit and then partially reverted to the deprecation mode in the second one.
Migration path:
useandswitchcommands will not have the intended PHP version constraints whilesystemandsystem-offwill. This will motivate the users to configure their environment as expected.TODO:
PHPBREW_SYSTEM_PHPhas been introduced. If set, it must contain the full path to the system PHP interpreter, e.g./usr/bin/php.__phpbrew_php_exec()is now the key entry point from the shell PHPBrew wrapper to the PHP implementation. It uses the system PHP interpreter if it's set or falls back to the current one. Also it tries to usebin/phpbrewif we're currently in the PHPBrew source directory.envsubcommand implementations have been removed from the shell whappers since the subcommand can be properly handled by a PHP implementation.Behavior tested manually on Fish and Bash:
Closes #872.