xdebug.so:未定义符号:zend_ce_error [英] xdebug.so: undefined symbol: zend_ce_error
问题描述
我需要调试旧的php版本:
I need debug old php version:
PHP 5.6.22 (cli) (built: Jun 29 2016 14:26:09)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
在Ubuntu上:Ubuntu 16.04 LTS
On Ubuntu: Ubuntu 16.04 LTS
我编译了适当的PHP,并从git存储库中检出了xdebug:
git://github.com/xdebug/xdebug.git
I compiled appropriate PHP, and checked out xdebug from git repository:
git://github.com/xdebug/xdebug.git
我尝试了不同的版本,但似乎master才可以编译.
在我的错误中,我有:
I tried different versions, but just master seems compiling.
In my errors I have:
Failed loading /usr/share/php53/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so: /usr/share/php53/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so: undefined symbol: zend_ce_error
我知道这是xdebug的新版本,而PHP的版本太旧.
如果我尝试为实例xdebug 1_0进行编译,我将:
I know that it is new version of xdebug with too old version of PHP.
If I try compile for instance xdebug 1_0, I have:
Makefile:181: recipe for target 'xdebug.lo' failed
对于其他版本,我还有其他错误.
With other versions I have other errors.
我的基本问题是:如何找到适用于PHP 5的xdebug?
My basic question is: how I can find appropriate xdebug for PHP 5?
更新
- xdebug.org/download.php-就不同版本而言,它仅包含Windows二进制文件
- sudo apt-get install php5-xdebug-在Ubuntu 16.04上不起作用,因为它不支持php5
- pecl install xdebug-在最好的情况下,将编译我已经拥有的最新版本,最坏的情况是将失败(这是我所经历的,我尝试过),因为上面提到的原因相同.
推荐答案
我在CentOS上也遇到了同样的错误,同样是从github编译的.对我来说,解决方案是将phpfino复制并粘贴到向导 https://xdebug.org/wizard.php并严格按照说明进行操作.
I had the same error on CentOS, also compiling from github. The solution for me was to copy and paste my phpfino into the wizard https://xdebug.org/wizard.php and follow the instructions exactly.
在我的特定情况下,似乎可以在 http://中找到答案. xdebug.org/files/xdebug-2.4.1.tgz 代替了最新的github版本,意味着apache可以加载它,并且现在显示在我的phpinfo页面上
In my particular case it seems that the answer was to be found in http://xdebug.org/files/xdebug-2.4.1.tgz as using that instead of the latest github version means apache can load it and it now shows on my phpinfo page
这篇关于xdebug.so:未定义符号:zend_ce_error的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!