简体   繁体   English

php@7.1和php71有什么区别[macOS上的Homebrew]

[英]What's the difference between php@7.1 and php71 [Homebrew on macOS]

I ran brew update && brew upgrade this morning and this warning came out: 我今天早上运行了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

what does that @ represent? @代表什么?

As said in some comments, the program in itself is the same. 如某些评论中所述,程序本身是相同的。 It's still PHP, and still version 7.1. 它仍然是PHP,仍然是7.1版。

But if you look at the homebrew/core and homebrew/php repositories, you will see that PHP 7.1 has been migrated from homebrew/php to homebrew/core, and it is only the naming that changes. 但是,如果您查看homebrew / corehomebrew / php存储库,您会发现PHP 7.1已从homebrew / php迁移到homebrew / core,只是名称发生了变化。

In homebrew/php it was named php71, and in homebrew/core it's named php@7.1 to separate program and version. 在homebrew / php中将其命名为php71,在homebrew / core中将其命名为php@7.1,以分隔程序和版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM