php-cli version is not chnaged on Intel platform
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 [email protected] 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/[email protected]/bin:$PATH" export PATH="/usr/local/opt/[email protected]/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 [email protected]
Unlinking /usr/local/Cellar/php/8.3.11... 24 symlinks removed.
Linking /usr/local/Cellar/[email protected]/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/[email protected]/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/[email protected]/sbin:$PATH"' >> ~/.zshrc
➜ bin php -ini
phpinfo()
PHP Version => 8.3.11
Thanks 🙂