Extend auto detection of bin/php #4040
Replies: 2 comments 2 replies
-
But what problem does it solve? Right now, you can simply overwrite bin/php per host with desired value |
Beta Was this translation helpful? Give feedback.
-
The proposed solution solves IMO following issues:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
hi,
what you think of extending a
bin/php
auto detection?Current default implementation IMHO serves only small percent of use cases and therefore must be anyway set manually.
The example implementation above works like that:
php_version
if it is set explicitly for host.php_version
is not set for host thencomposer.json
file is searched for['config']['platform']['php']
and if not found then for['require']['php']
.which('phpX.Y')
andwhich('phpXY')
.php_version
,['config']['platform']['php']
,['require']['php']
are set then there is standard check forwhich('php')
.Beta Was this translation helpful? Give feedback.
All reactions