php_5.3.5中不存在php_zip [英] php_zip does not exist in php 5.3.5

查看:58
本文介绍了php_5.3.5中不存在php_zip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用PHPExcel.要求之一是我需要启用php_zip.

(...)如果您需要PHPExcel来处理.xlsx或.ods文件,则将需要 zip扩展名...

我正在使用PHP v5.3.5.在我的php.ini文件中,有以下几行:

;extension=php_xmlrpc.dll
;extension=php_xsl.dll
;extension=php_zip.dll

如果我删除最后一行中的;,然后重新启动Wampserver,则会收到以下错误消息:

PHP启动:无法加载动态库 'I:/wamp/.../ext/php_zip.dll'-指定的模块不能是 找到了.

许多人说,从PHP 5.3.0开始,内置了php_zip.

如果已构建,那么为什么该行仍保留在配置中?
我是否收到错误消息,因为它是内置文件,因此已被删除?

PS.很抱歉,如果这是在错误的论坛中,但不确定将其放在何处.

解决方案

实际上,默认情况下包括Zip.仍然是错误.

I'm in the process of using PHPExcel. One of the requirements is that I need to enable php_zip.

(...) if you need PHPExcel to handle .xlsx or .ods files you will need the zip extension...

I'm using PHP v5.3.5. and in my php.ini file, I have the following lines:

;extension=php_xmlrpc.dll
;extension=php_xsl.dll
;extension=php_zip.dll

If I remove the ; in the last line, and restart Wampserver, I get the following error message:

PHP Startup: Unable to load dynamic library 'I:/wamp/.../ext/php_zip.dll' - The specified module could not be found.

Reading the web, many says that as of PHP 5.3.0, php_zip is built-in.

If it is built then why is this line still in the configuration?
Do I get the error message because since it's built in, the file has been removed?

PS. Sorry if this is in the wrong forum, but not sure where else to put it.

解决方案

In fact, Zip is included by default. It is a bug that the line is still included.

这篇关于php_5.3.5中不存在php_zip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆