Open
Description
I'm trying to use the Symfony CLI with a specific PHP binary from a custom build, but I can't seem to select it when there are multiple PHP installations with the same version.
Here’s the output from symfony local:php:list
:
Version | Directory | PHP CLI | PHP FPM | PHP CGI | Server | System? |
---|---|---|---|---|---|---|
8.3.20 | /usr | bin/php8.3 | sbin/php-fpm8.3 | PHP FPM | ||
8.4.6 | /usr | local/php8.4/bin/php | local/php8.4/sbin/php-fpm | local/php8.4/bin/php-cgi | PHP FPM | |
8.4.6 | /usr/local | bin/php | bin/php-cgi | PHP CGI | * | |
8.4.6 | /usr | bin/php8.4 | sbin/php-fpm8.4 | PHP FPM |
My .php-version
is 8.4.6. The one I want to use is the first 8.4.6 entry, but the Symfony CLI defaults to the last one.
It would be great to support selecting a specific PHP binary by full path, like:
symfony local:php:select /usr/local/php8.4/bin/php
Or otherwise disambiguating binaries that share the same version.
I would like to be able to set the binary with a command such as symfony local:php:select /usr/local/php8.4/bin/php
somehow.
Metadata
Metadata
Assignees
Labels
No labels