gpt4 book ai didi

运行单元测试时 PHP 启动 : Unable to load dynamic library,

转载 作者:行者123 更新时间:2023-12-03 11:22:06 25 4
gpt4 key购买 nike

当我尝试运行单元测试时,出现此错误

PHP Warning: PHP Startup: Unable to load dynamic library 'bz2' (tried: \xampp\php\ext\bz2 (The specified module could not be found.), \xampp\php\ext\php_bz2.dll (The specified module could not be found.)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: \xampp\php\ext\curl (The specified module could not be found.), \xampp\php\ext\php_curl.dll (The specified module could not be found.)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'fileinfo' (tried: \xampp\php\ext\fileinfo (The specified module could not be found.), \xampp\php\ext\php_fileinfo.dll (The specified module could not be found.)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'gd2' (tried: \xampp\php\ext\gd2 (The specified module could not be found.), \xampp\php\ext\php_gd2.dll (The specified module could not be found.)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'gettext' (tried: \xampp\php\ext\gettext (The specified module could not be found.), \xampp\php\ext\php_gettext.dll (The specified module could not be found.)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'mbstring' (tried: \xampp\php\ext\mbstring (The specified module could not be found.), \xampp\php\ext\php_mbstring.dll (The specified module could not be found.)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'exif' (tried: \xampp\php\ext\exif (The specified module could not be found.), \xampp\php\ext\php_exif.dll (The specified module could not be found.)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried: \xampp\php\ext\mysqli (The specified module could not be found.), \xampp\php\ext\php_mysqli.dll (The specified module could not be found.)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: \xampp\php\ext\pdo_mysql (The specified module could not be found.), \xampp\php\ext\php_pdo_mysql.dll (The specified module could not be found.)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_sqlite' (tried: \xampp\php\ext\pdo_sqlite (The specified module could not be found.), \xampp\php\ext\php_pdo_sqlite.dll (The specified module could not be found.)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'php_openssl.dll' (tried: \xampp\php\ext\php_openssl.dll (The specified module could not be found.), \xampp\php\ext\php_php_openssl.dll.dll (The specified module could not be found.)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'php_ftp.dll' (tried: \xampp\php\ext\php_ftp.dll (The specified module could not be found.), \xampp\php\ext\php_php_ftp.dll.dll (The specified module could not be found.)) in Unknown on line 0 PHP Warning: Cannot open '\xampp\php\extras\browscap.ini' for reading in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'bz2' (tried: \xampp\php\ext\bz2 (The specified module could not be found.), \xampp\php\ext\php_bz2.dll (The specified module could not be found.)) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: \xampp\php\ext\curl (The specified module could not be found.), \xampp\php\ext\php_curl.dll (The specified module could not be found.)) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'fileinfo' (tried: \xampp\php\ext\fileinfo (The specified module could not be found.), \xampp\php\ext\php_fileinfo.dll (The specified module could not be found.)) in Unknown on line 0



警告:PHP 启动:无法加载动态库“gd2”(尝试:
\xampp\php\ext\gd2(找不到指定的模块。),
\xampp\php\ext\php_gd2.dll(找不到指定的模块。))
在第 0 行的未知中

警告:PHP 启动:无法加载动态库“gettext”(尝试:
\xampp\php\ext\gettext(找不到指定的模块。),
\xampp\php\ext\php_gettext.dll(指定的模块不能
找到。))在第 0 行的未知中

警告:PHP 启动:无法加载动态库“mbstring”
(试过:\xampp\php\ext\mbstring(指定的模块不能
找到。),\xampp\php\ext\php_mbstring.dll(指定的模块可以
找不到。))在第 0 行的未知中

警告:PHP 启动:无法加载动态库“exif”(尝试:
\xampp\php\ext\exif(找不到指定的模块。),
\xampp\php\ext\php_exif.dll(指定的模块不能
找到。))在第 0 行的未知中

警告:PHP 启动:无法加载动态库 'mysqli'(尝试:
\xampp\php\ext\mysqli(找不到指定的模块。),
\xampp\php\ext\php_mysqli.dll(指定的模块不能
找到。))在第 0 行的未知中

警告:PHP 启动:无法加载动态库 'pdo_mysql'
(试过:\xampp\php\ext\pdo_mysql(指定的模块不能
找到。),\xampp\php\ext\php_pdo_mysql.dll(指定的模块可以
找不到。))在第 0 行的未知中

警告:PHP 启动:无法加载动态库“pdo_sqlite”
(试过:\xampp\php\ext\pdo_sqlite(指定的模块不能
找到。),\xampp\php\ext\php_pdo_sqlite.dll(指定的模块可以
找不到。))在第 0 行的未知中

警告:PHP 启动:无法加载动态库 'php_openssl.dll'
(试过:\xampp\php\ext\php_openssl.dll(指定的模块不能
),\xampp\php\ext\php_php_openssl.dll.dll(指定的
找不到模块。))在第 0 行的未知中

警告:PHP 启动:无法加载动态库 'php_ftp.dll'
(试过:\xampp\php\ext\php_ftp.dll(指定的模块不能
找到。),\xampp\php\ext\php_php_ftp.dll.dll(指定的模块
找不到。))在第 0 行的未知中

有人可以帮助我吗?谢谢。
在 PHPstorm 中运行,Win 10

最佳答案

您可能需要编辑您的 php.ini文件并重新启动服务器。在 php.ini 中添加绝对路径配置。它适用于我的 Windows 8.1 机器上的 xampp 服务器。
例子:extension_dir="\xampp\php\ext"extension_dir="C:\xampp\php\ext"引用:How to fix PHP Warning: PHP Startup: Unable to load dynamic library 'ext\\php_curl.dll'?

关于运行单元测试时 PHP 启动 : Unable to load dynamic library,,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51156520/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com