【发布时间】:2017-01-27 13:25:40
【问题描述】:
我使用brew安装了php70和php70-xdebug。
brew install php70
brew install php70-xdebug
php -v 返回此错误:
无法加载 Xdebug - 它是使用配置 API320151012、NTS 构建的, 而运行引擎是 API320151012,NTS,debug
我不知道如何将--disable-debug 传递给编译器,brew 使用预配置公式 (https://github.com/Homebrew/homebrew-php),并且不允许设置此选项。
问题是:xdebug公式有--disable-debug,而php70公式有一个选项--with-debug,但是即使你不使用这个参数,它也会在configure命令后附加--enable-debug。
【问题讨论】:
标签: macos homebrew xdebug php-7