我正在尝试为 laravel 项目安装 php_zip。我正在使用 Windows。
然后我把它php_zip.dll
放在我的 php/ext 文件夹中。
然后我编辑了我的 php.ini 文件以添加这一行:
extension=zip
在现有扩展中添加 zip。
当我部署我的服务器时,PHP 仍然告诉我:
Warning: PHP Startup: Unable to load dynamic library 'zip' (tried: C:\xampp\php\ext\zip (the specified module was not found), C:\xampp\php\ext\php_zip.dll (the specified module was not found)) in Unknown on line 0
Starting Laravel development server: http://127.0.0.1:8000
[Mon Jan 25 11:50:11 2021] PHP Warning: PHP Startup: Unable to load dynamic library 'zip' (tried: C:\xampp\php\ext\zip (the specified module was not found), C:\xampp\php\ext\php_zip.dll (the specified module was not found)) in Unknown on line 0
正如我们所见,PHP 正在尝试读取正确的文件夹并正在寻找正确的文件。为什么它无法加载它呢?