Yesterday, after brewupadtebrewupgrade, phpunit showed a variety of F, which was originally caused by a bugfix of php5.5.17. To temporarily use phpunit normally, you can only roll back the php version. You can use brewlink and brewunlink to switch different versions of php installed by brew. For example
Yesterday, after brew upadte brew upgrade, phpunit encountered various F types. I checked that it was caused by a bug fix in php 5.5.17. To temporarily use phpunit normally, you can only roll back the php version. You can use brew link and brew unlink to switch different versions of php installed by brew. For example
Just a little yesterdaybrew upadte & brew upgrade
Then phpunit has various F types, which are due to a bug fix in php 5.5.17. To temporarily use phpunit normally, you can only roll back the php version.
Version Switch Mode
Php installed through brew can bebrew link
Andbrew unlink
To switch between different versions.
For example
brew listbrew unlink php56brew link php55
Available for major versionsbrew list
If it is a minor version, you can only/usr/local/Cellar/php55
Read it. Usephp-version
It is more convenient.
Install
php-version
Php-version is a tool that helps you manage php version switching installed from brew.
Easy to install
brew install php-version
Then execute
source $(brew --prefix php-version)/php-version.sh && php-version 5
Use
php-version
Direct execution
php-version
You can see the current version, such as my own
$ php-version 5.5.15* 5.5.16 5.5.17
Run the following command to switch between them:
php-version 5.5.15
Check the php version again.
Original article address: roll back the PHP version installed with Brew on Mac. Thank you for sharing it with me.