gpt4 book ai didi

PHPUnit 动态库警告 - 找不到图像

转载 作者:可可西里 更新时间:2023-11-01 13:56:28 26 4
gpt4 key购买 nike

我在 mac 上使用 phpunit 时遇到一些问题。

当我运行 phpunit 时,出现以下错误

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so, 9): image not found in Unknown on line 0

有什么想法吗?我使用本指南将 mcrypt 手动添加到我的系统 - http://michaelgracie.com/2009/09/23/plugging-mcrypt-into-php-on-mac-os-x-snow-leopard-10-6-1/

我很困惑为什么要查找图像。

提前致谢。

最佳答案

我在使用 josegonzalez 的自制软件安装 xhprof 和 php 时遇到了这个问题:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php53/5.3.23/lib/php/extensions/no-debug-non-zts-20090626/xhprof.so' - dlopen(/usr/local/Cellar/php53/5.3.23/lib/php/extensions/no-debug-non-zts-20090626/xhprof.so, 9): image not found in Unknown on line 0

原来问题是由于 php.ini 中多了一行,可能是之前安装的痕迹。

$ grep -RF xhprof .
./conf.d/ext-xhprof.ini:[xhprof]
./conf.d/ext-xhprof.ini:extension="/usr/local/Cellar/php53-xhprof/0.9.2/xhprof.so"
./php.ini:extension="xhprof.so" ; <-- this, why do I need to load xhprof twice?

删除该行使警告消失。

关于PHPUnit 动态库警告 - 找不到图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6827880/

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