8000 php-cli version is not chnaged on Intel platform · Issue #17 · rhukster/sphp.sh · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
php-cli version is not chnaged on Intel platform #17
Open
@Pieurre

Description

@Pieurre

Hello :)

INTEL PLATFORM ISSUE (I think)

First, a big thanks to this super documentation, really complete and very clear! Bravo
--> https://getgrav.org/blog/macos-sequoia-apache-multiple-php-versions

There's just one thing that doesn't work: the php-cli version switch. For Apache it works fine, I can see with phpinfo that the php version changes, but not in cli. (after passing the command brew unlink php && brew link --overwrite --force php@8.2 for example).

Do you have any clues?

I'm on a fresh install of Sequoia.

It work when i do:

export PATH="/usr/local/opt/php@8.3/bin:$PATH"
export PATH="/usr/local/opt/php@8.3/sbin:$PATH"

If I don't make these PATH changes, the version of php used by Apache works, but not the php-cli version, like:

➜  bin brew unlink php && brew link --overwrite --force php@8.2
Unlinking /usr/local/Cellar/php/8.3.11... 24 symlinks removed.
Linking /usr/local/Cellar/php@8.2/8.2.23... 25 symlinks created.

If you need to have this software first in your PATH instead consider running:
  echo 'export PATH="/usr/local/opt/php@8.2/bin:$PATH"' >> ~/.zshrc
  echo 'export PATH="/usr/local/opt/php@8.2/sbin:$PATH"' >> ~/.zshrc
➜  bin php -ini
phpinfo()
PHP Version => 8.3.11

Thanks 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0