Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Can't select specific PHP binary when multiple installations share the same version #599

Copy link
Copy link
Open
@florentdestremau

Description

@florentdestremau
Issue body actions

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.