什么是php@7.1和php71之间的区别[Homebrew on macOS]

时间:2018-03-29 12:09:59

标签: php macos homebrew

我今天早上跑了brew update && brew upgrade并发出了这个警告:

> ==> Renamed Formulae
php71 ✔ -> php@7.1
==> Deleted Formulae
homebrew/php/php71-gmp        homebrew/php/php71-mcrypt     homebrew/php/php71-pcntl      homebrew/php/php71-pdo-pgsql  homebrew/php/php71-snmp
homebrew/php/php71-intl       homebrew/php/php71-opcache    homebrew/php/php71-pdo-dblib  homebrew/php/php71-pspell     homebrew/php/php71-tidy
==> Processing php71 formula rename to php@7.1
==> Unlinking php71
==> Moving php71 versions to /usr/local/Cellar/php@7.1
==> Relinking php@7.1
Warning: php@7.1 is outdated!
To avoid broken installations, as soon as possible please run:
  brew upgrade
Or, if you're OK with a less reliable fix:
  brew upgrade php@7.1

@代表什么?

1 个答案:

答案 0 :(得分:2)

正如一些评论所说,该计划本身是一样的。它仍然是PHP,仍然是7.1版本。

但是如果你看一下homebrew/corehomebrew/php存储库,你会发现PHP 7.1已经从homebrew / php迁移到homebrew / core,而且只是命名发生了变化。 / p>

在homebrew / php中,它被命名为php71,在homebrew / core中,它被命名为php@7.1以分离程序和版本。