【问题标题】:Cannot install Zend Debugger on 64-bit Windows 10无法在 64 位 Windows 10 上安装 Zend 调试器
【发布时间】:2021-06-06 10:10:37
【问题描述】:

我在 Windows 10 64 位上安装 Zend Debugger 时遇到问题。我安装了 PHP 8.0.1,64 位版本。

我已经从 Zend(也是 64 位)下载了 ZendDebugger.dll 并放在我的“ext”文件夹中,并且相应地更新了 php.ini 文件。

当我尝试从命令行运行 php 时,我得到:

PHP Warning: Failed loading Zend extension 'ZendDebugger.dll' (tried: ext\ZendDebugger.dll (%1 is not a valid Win32 application), ...

这表明它找到了文件,但由于架构错误,无法使用它。此错误消息暗示 .dll 文件确实是 64 位的,但我不明白为什么需要 32 位版本。从命令行运行 php -i 和 Apache 下的 phpinfo() 都表明一切都是 64 位的。

我已经在互联网上搜寻了答案,但什么也没找到。

我错过了什么?

【问题讨论】:

    标签: php windows 32bit-64bit zend-debugger


    【解决方案1】:

    不知道你解决了没有。

    我解决了将 ZendDebugger.dll 移动到 php8.1 文件夹而不是 ext 文件夹的问题, 并在 php .ini 文件中的“extension=zend_test”之后添加流线。

    Windows 非线程安全:zend_extension="D:\wamp64\bin\php\php7.4.26\ZendDebugger.dll" zend_debugger.allow_hosts=127.0.0.1

    **如果在远程服务器中调试,请更改 ip 地址。

    【讨论】:

      猜你喜欢
      • 2017-04-07
      • 2010-10-31
      • 2019-02-16
      • 2017-10-26
      • 2011-07-21
      • 2011-03-11
      • 2017-12-19
      • 2016-07-30
      • 2017-04-10
      相关资源
      最近更新 更多