Reputation: 1000
One project needs an older PHP version 7.0.
I followed this guide from JetBrains to configure the PHP Interpreter, but even after restarting Apache, terminating the shell, restarting PhpStorm it didn't work.
So I decided to try it differently, so I followed this guide on how to run two PHP versions at the same time with XAMPP, I followed everything to the letter, but when typing php -v
it still does not show the wanted PHP version.
Am I missing out on something?
Upvotes: 0
Views: 2762
Reputation: 1000
A thousand thanks to @LazyOne which gave me the solution.
As I only need PHP 7 to run composer update
for one project, it is way simpler to use the full path instead of configuring the PATH
env variable.
This worked for me:
php7
)php.ini-development
to php.ini
;
before ; extension_dir = "ext"
and ; extension=openssl
"C:\xampp\php7\php.exe" "C:\ProgramData\ComposerSetup\bin\composer.phar" update
Et voilà.
Unfortunately though, this didn't work out for me as I had many exceptions, but not really related to this question (Fatal error: Attempted to load class "Redis" from the global namespace
) as the update command did start the update process.
Upvotes: 1