我无法将xdebug
作为扩展名加载Zend
因为php.ini
会自动输入错误的术语。
phpinfo()
中的消息是
XDEBUG 未作为 ZEND 扩展加载
我在 Windows Server 2008 R2 Enterprise 上使用 IIS 7.5PHP 5.3.8Zend引擎v2.3.0
我的部分php.ini
:
[xdebug]
zend_extension=php_xdebug-2.2.0-5.3-vc9-nts.dll
xdebug.remote_enable=1
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
未记录任何错误。
我需要激活 IIS 设置中的每个扩展。然后当我重新启动 IIS 时,php.ini
更新为该行
[PHP_XDEBUG-2.2.0-5.3-VC9-NTS]
extension=php_xdebug-2.2.0-5.3-vc9-nts.dll
为什么会这样?
(由 OP 解决并在问题编辑中回答。 转换为社区维基答案。请参阅没有答案的问题,但问题在评论中得到解决(或在聊天中扩展) )
OP写道:
现在,它将扩展路径更改为绝对路径后工作。无论如何都添加了 2 行,但现在
phpinfo()
显示了完整的 xdebug 配置。
php.ini
的工作部分:
[PHP_XDEBUG-2.2.0-5.3-VC9-NTS]
zend_extension="C:Program Files (x86)phpextphp_xdebug-2.2.0-5.3-vc9-nts.dll"
xdebug.remote_enable=1
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
[PHP_XDEBUG-2.2.0-5.3-VC9-NTS]
extension=php_xdebug-2.2.0-5.3-vc9-nts.dll