3

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
4

1 回答 1

0

通常这种错误似乎可以通过“reinstall -s”来修复。

$ brew reinstall -s php71-xdebug
于 2017-09-26T09:20:19.707 回答