Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/246.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP警告:无法加载动态库PHP_pdo_sqlite.dll&;php_sqlite3.dll_Php_Php 7.1 - Fatal编程技术网

PHP警告:无法加载动态库PHP_pdo_sqlite.dll&;php_sqlite3.dll

PHP警告:无法加载动态库PHP_pdo_sqlite.dll&;php_sqlite3.dll,php,php-7.1,Php,Php 7.1,我在mac上使用PHP7.1已经有一段时间了,在尝试安装composer之后,我遇到了以下错误: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20160303/php_pdo_sqlite.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/php_pdo_sqlit

我在mac上使用PHP7.1已经有一段时间了,在尝试安装composer之后,我遇到了以下错误:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20160303/php_pdo_sqlite.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/php_pdo_sqlite.dll, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20160303/php_pdo_sqlite.dll in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20160303/php_sqlite3.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/php_sqlite3.dll, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20160303/php_sqlite3.dll in Unknown on line 0
在/usr/lib/php/extensions/no-debug-non-zts-20160303目录中,只有两个文件: -奥帕奇 -xdebug.so

我发现了几个与此相关的线程,在检查php ini并运行phpinfo()后,无法找到解决此问题的方法

试跑

php -i | grep ini

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20160303/php_pdo_sqlite.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/php_pdo_sqlite.dll, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20160303/php_pdo_sqlite.dll in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20160303/php_sqlite3.dll' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/php_sqlite3.dll, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20160303/php_sqlite3.dll in Unknown on line 0
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
Scan this dir for additional .ini files => (none)
Additional .ini files parsed => (none)
user_ini.cache_ttl => 300 => 300
user_ini.filename => .user.ini => .user.ini
Supported handlers => ndbm cdb cdb_make inifile flatfile 
init_command_executed_count => 0
init_command_failed_count => 0
com_init_db => 0
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException
open sourced by => Epinions.com
[编辑]

在ini文件中,对DLL文件的所有引用都被注释掉,对sqlite的所有引用都被注释掉

有人能给我提供更多关于如何解决这个问题的信息吗


我使用的是PHP7.1和带有Mojave的Mac。

不要在配置中放置引用DLL文件的行。它们是针对Windows的。我在PHPINI中查找过,找不到这些的参考。如何更改配置?请尝试运行“php-I | grep ini”,因为您可能有更多的ini文件尝试此操作,并且只安装了一个版本。不要在配置中放置引用DLL文件的行。它们是针对Windows的。我在PHPINI中查找过,找不到这些的参考。如何更改配置?请尝试运行“php-I | grep ini”,因为您可能会有更多的ini文件尝试此操作,并且只安装了一个版本。