如何解决动态库上的PHP警告?

时间:2017-06-28 03:19:55

标签: php laravel artisan

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\Program Files\iis express\PHP\v7.1\ext\php_mysql.dll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\Program Files\iis express\PHP\v7.1\ext\php_wincache.dll' - The specified module could not be found.
 in Unknown on line 0
Could not open input file: artisan

下载.dll文件是否明智?还有其他解决方案吗?

1 个答案:

答案 0 :(得分:1)

看起来您使用的是旧版本的php.ini?

php_mysql was removed in PHP 7.0

  

此扩展在PHP 5.5.0中已弃用,并已在PHP中删除   7.0.0。相反,应该使用MySQLi或PDO_MySQL扩展。

所以你应该从你的php.ini文件中删除加载php_mysql的行:

extension=php_mysql.dll

WinCache扩展不与PHP捆绑在一起,您可以install it using PECL