xdebug.so未加载。
输出php -v:
Failed loading /usr/local/opt/php71-xdebug/xdebug.so: dlopen(/usr/local/opt/php71-xdebug/xdebug.so, 9): no suitable image found. Did find:
/usr/local/opt/php71-xdebug/xdebug.so: mach-o, but wrong architecture
PHP 7.1.2 (cli) (built: Apr 19 2017 19:17:16) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
macOS version: | 10.12.5
Homebrew version: | Homebrew 1.2.4-107-gaa8eb21
PHP version in use: | 7.1.2
答案 0 :(得分:0)
通常这种错误似乎是通过"重新安装-s"来解决的。
$ brew reinstall -s php71-xdebug