不能在PHP 5.2.17上激活Xdebug ?

时间:2022-01-29 23:31:54

I am running Apache 2.2.19 and PHP 5.2.17. I wanted to configure debugging with Xdebug, so I went to xdebug.org and downloaded: php_xdebug-2.1.2-5.2-vc6-nts.dll (I have php VC6 x86 version). I copied it to c:\Program Files (x86)\php\ext\php_xdebug-2.1.2-5.2-vc6-nts.dll

我正在运行Apache 2.2.19和PHP 5.2.17。我想用Xdebug配置调试,所以我去了Xdebug .org,并下载了:php_xdebug-2.1.2-5.2-vc6-nts。dll(我有php VC6 x86版本)。我复制c:\Program Files (x86)\php\ext\ php_xdebug nts.dll——2.1.2 - 5.2机器

Edited PHP.ini (added):

编辑PHP。ini(添加):

[xdebug]
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_log = "c:\host\xdebug.log"
zend_extension_ts="c:\Program Files (x86)\php\ext\php_xdebug-2.1.2-5.2-vc6-nts.dll"

But I still can't see in phpinfo() xdebug information - so it's not working. Apache error log says:

但是我仍然不能在phpinfo() xdebug信息中看到它,所以它不起作用。Apache错误日志说:

Failed loading c:\Program Files (x86)\php\ext\php_xdebug-2.1.2-5.2-vc6-nts.dll
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in

1 个解决方案

#1


5  

Are you using thread safe or non-thread safe PHP? It looks like the xdebug dll you downloaded is for non-thread safe. I think you can find this out using phpinfo(). This could be the cause of the problem.

您是否使用线程安全或非线程安全的PHP?看起来,您下载的xdebug dll是用于非线程安全的。我想你可以用phpinfo()来找到答案。这可能是问题的根源。

If you are using thread safe PHP then try downloading the thread safe version of xdebug. This could help.

如果您正在使用线程安全的PHP,那么尝试下载线程安全版本的xdebug。这可以帮助。

You can download it here: http://xdebug.org/files/php_xdebug-2.1.2-5.2-vc6.dll

您可以在这里下载:http://xdebug.org/files/php_xdebug-2.1.2-5.2-vc6.dll。

#1


5  

Are you using thread safe or non-thread safe PHP? It looks like the xdebug dll you downloaded is for non-thread safe. I think you can find this out using phpinfo(). This could be the cause of the problem.

您是否使用线程安全或非线程安全的PHP?看起来,您下载的xdebug dll是用于非线程安全的。我想你可以用phpinfo()来找到答案。这可能是问题的根源。

If you are using thread safe PHP then try downloading the thread safe version of xdebug. This could help.

如果您正在使用线程安全的PHP,那么尝试下载线程安全版本的xdebug。这可以帮助。

You can download it here: http://xdebug.org/files/php_xdebug-2.1.2-5.2-vc6.dll

您可以在这里下载:http://xdebug.org/files/php_xdebug-2.1.2-5.2-vc6.dll。