简体   繁体   English

brew php54-xdebug加载xxx.xdebug.so失败找不到符号

[英]brew php54-xdebug Failed loading xxx.xdebug.so Symbol not found

I used brew install php54-xdebug,then I found php.ini and added some confs. 我使用brew install php54-xdebug,然后找到php.ini并添加了一些配置文件。

[xdebug]<br>
zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so"<br>
xdebug.remote_enable = On<br>
xdebug.remote_handler = "dbgp"<br>
xdebug.remote_host = "localhost"<br>
xdebug.remote_port = 9000<br>
xdebug.idekey = PHPSTROM<br>

I found this xdebug.so file get through zend_extension, when i tried to use less to open this file content, it pointed out xdebug.so" may be a binary file. See it anyway? 我发现此xdebug.so文件是通过zend_extension获取的,当我尝试用更少的时间打开此文件内容时,它指出xdebug.so”可能是二进制文件。无论如何看到它?

When I used php -a or do some other things about php, it will point out: 当我使用php -a或对php做其他事情时,它会指出:

Failed loading /usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so: dlopen(/usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so, 9): Symbol not found: _zend_execute_ex Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so Expected in: flat namespace in /usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so Interactive shell 无法加载/usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so:dlopen(/usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so, 9):找不到符号:_zend_execute_ex引用自:/usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so预期用于:/ usr / lib / php / extensions / no-中的平面命名空间debug-non-zts-20121212 / xdebug.so交互式外壳

Find where your xdebug was located: 查找您的xdebug所在的位置:

sudo find / -name xdebug.so

It will take some minutes. 这需要几分钟。

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

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