Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

False PHP version warning with symlinked binaries #666

Open
@timwhitlock

Description

@timwhitlock

Running any command that uses PHP, I get a redundant warning that PHP can't be found, but then is found.

Example:

$ symfony php -vWARNING the current dir requires PHP 8.2.0 (composer.json from current dir: /symfony_demo/composer.json), \but this version is not available: fallback to 8.2PHP 8.2.9 (cli) [...]$ symfony console -VWARNING the current dir requires PHP 8.2.0 (composer.json from current dir: /symfony_demo/composer.json), \but this version is not available: fallback to 8.2Symfony 7.3.4 (env: dev, debug: true)

I tried PHP 8.2, 8.3 and 8.4 with the same result.

The PHP binary is at/usr/local/bin/php but symlinked from e.g./usr/local/php84/bin/php. Running/usr/bin/env php -v gives the correct version, but perhaps something else is missing, or confusing the cli?

This is on macOS with v 5.15.1 of the cli (Darwin package) dowloaded from this repo.

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp