我已经有几天的选择了.当我尝试运行 PHPUnit 测试时,我收到一条消息,提示加载 Xdebug 失败.我试图重新安装,更改文件路径等,但我无处可去.希望有人可以帮助我:)
I have been having a option for a few days. When I try to run a PHPUnit test I get a message saying failed to load Xdebug. I have tried to reinstall, change filepaths etc but I am getting nowhere. Hoping somebody can help me out :)
PHP 7.4.3 (cli) (built: Oct 6 2020 15:47:56) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies 推荐答案加载 xxxx.dll 失败 表示 PHP 无法加载扩展文件.这可能有几个原因:
Failing loading xxxx.dll is an indication that PHP can't load the extension file. This could have several reasons:
文件不存在→检查是否存在
The file does not exist → check if it does
文件权限不正确→检查权限
The permissions on the file are incorrect → check the permissions
该文件是错误的扩展类型".可以是:
The file is of "the wrong extension type". Which can be either:
- 该扩展程序用于错误的 PHP 版本
- 扩展名错误(32 位与 64 位)
- 错误的 TS 变体(NTS 与 ZTS)
- 错误的调试模式"构建 PHP(调试或 nodebug)
API类型(bitness除外,可以用echo PHP_INT_SIZE;查看;4为32bit,8为64bit)反映在Zend Extension Build"中在 php -i 或 phpinfo() 中输出.
The API type (except for bitness, which you can check with echo PHP_INT_SIZE;; 4 is 32bit, and 8 is 64bit) is reflected in the "Zend Extension Build" output in php -i or phpinfo().
您可以使用 Xdebug 的 wizard 告诉您要为您的特定设置下载哪个确切文件.
You can use Xdebug's wizard to tell you which exact file to download for your specific set-up.
更多推荐
运行 PHPUnit 测试时无法加载 Xdebug
发布评论