【问题标题】:PHP 8.0.2 - Failed loading Zend extension 'xdebug'PHP 8.0.2 - 加载 Zend 扩展“xdebug”失败
【发布时间】:2021-12-11 01:45:37
【问题描述】:

将我的 php_info() 粘贴到 Xdebug 安装向导上并按照所有步骤操作。

但是,我不断得到

PHP Warning: Failed loading Zend extension 'xdebug' (试过: ext\xdebug (The specified module could not be found), ext\php_xdebug.dll (The specified module could not be found)) in Unknown on line 0

使用 Windows 11、PHP 8.0.2 CLI

更新:
尝试通过 CMD 运行php -i,我得到以下弹出窗口。不知道是不是和这个问题有关:

【问题讨论】:

  • 名为php_xdebug.dll的文件是否在you are running的PHP版本的ext目录中?
  • 是的,我将其重命名为php_xdebug.dll 并保存在我的ext 文件夹中
  • 你的extensions_dirphp.ini 设置是什么?
  • extension_dir = "ext"
  • 请查看帖子上的更新。无法使用 cmd 在终端上获取 php 信息。 Idk 如果这相关

标签: php xdebug


【解决方案1】:

需要选择正确的 dll 版本 - TS 或 NTS,32 或 64 位:

PHP 8.0 VS16 (64 bit)
PHP 8.0 VS16 (32 bit)
PHP 8.0 VS16 TS (64 bit)
PHP 8.0 VS16 TS (32 bit)

【讨论】:

    猜你喜欢
    • 2023-01-11
    • 2014-12-01
    • 2017-03-27
    • 2022-09-28
    • 2014-11-22
    • 2020-06-18
    • 2012-07-03
    • 1970-01-01
    • 2017-08-22
    相关资源
    最近更新 更多