Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php_zip.dll is missing from PHP 5.5 for Windows

Tags:

php

windows

I downloaded PHP 5.5. for Windows and trying to install Composer.

Later I found that Composer need Zip extension. But php_zip.dll file is missing from PHP 5.5 zip I downloaded from php.net website.

Where can I find this missing php_zip.dll?

Thanks in advance.

like image 784
Sasidhar Vanga Avatar asked Jul 12 '13 02:07

Sasidhar Vanga


2 Answers

Found the Answer.

  1. Remove ;extension=php_zip.dll line in php.ini.
  2. Restart Apache HTTP Server.

Previous versions of PHP shipped with separate php_zip.dll file in ext folder. And we need to enable (comment out the ;extension=php_zip.dll line in php.ini) the zip extension manually.

Latest version - PHP 5.5 includes this zip support in core and it is enabled by default.

But the line ;extension=php_zip.dll was left there in php.ini even though it is not needed.

As usual after installing PHP 5.5, I enabled (commented out) ;extension=php_zip.dll line in php.ini, thinking that it is a separate extension.

In this case, Composer couldn't find php_zip.dll.

I removed the ;extension=php_zip.dll line in php.ini.

Restarted Apache HTTP Server.

Worked fine.

like image 195
Sasidhar Vanga Avatar answered Oct 22 '22 12:10

Sasidhar Vanga


The PHP 5.5 build for Windows that I installed from windows.php.net did not come with /ext/php_zip.dll, so I had to download the latest dll file for my Windows 8 x64 Non-Thread-Safe system and copy it into my php ext directory: http://pecl.php.net/package/zip/1.12.4/windows

like image 28
Marty McGee Avatar answered Oct 22 '22 10:10

Marty McGee