无法在PHP 5.2.17上激活Xdebug

Ale*_*Kim 5 php apache xdebug

我正在运行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-2.1.2-5.2-vc6-nts.dll

编辑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"
Run Code Online (Sandbox Code Playgroud)

但我仍然无法在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
Run Code Online (Sandbox Code Playgroud)

use*_*653 5

您使用线程安全或非线程安全的PHP?看起来你下载的xdebug dll是非线程安全的.我想你可以用phpinfo()找到它.这可能是问题的原因.

如果您使用的是线程安全的PHP,请尝试下载xdebug的线程安全版本.这可能有所帮助.

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