首页 > 解决方案 > PHP 7.3 在 Mac 上运行但未安装在任何地方

问题描述

当我检查时brew services list,我看到唯一运行的 PHP 版本是 7.2。

当我这样做时,我会php -v看到:

WARNING: PHP is not recommended
PHP is included in macOS for compatibility with legacy software.
Future versions of macOS will not include PHP.
PHP 7.3.24-(to be removed in future macOS) (cli) (built: May  8 2021 09:40:37) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.24, Copyright (c) 1998-2018 Zend Technologies

我跑了locate php,没有出现 PHP 7.3 的实例供我删除。仅显示 7.2 的目录。

如果我尝试brew remove phpbrew remove php@7.3然后什么也没有发生。

如何找到这个幻像 PHP 版本并将其从我的计算机中完全删除?

标签: phpmacoshomebrew

解决方案


推荐阅读