Php_zip.dll is missing in PHP 5.5 for Windows

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

Later I discovered that Composer requires the Zip extension. But the php_zip.dll file php_zip.dll missing in PHP 5.5 zip, which I downloaded from php.net.

Where can I find this missing php_zip.dll ?

Thanks in advance.

+6
source share
2 answers

Answer found.

  • Delete the line ;extension=php_zip.dll in php.ini .
  • Restart the Apache HTTP server.

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

The latest version - PHP 5.5 includes this kernel zip support and is enabled by default.

But the line ;extension=php_zip.dll remained there in php.ini , although it is not needed.

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

In this case, the composer could not find php_zip.dll .

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

Rebooted Apache HTTP Server.

It worked fine.

+7
source

The PHP 5.5 compilation for Windows that I installed from windows.php.net does 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 to the directory php ext: http://pecl.php.net/package/zip/1.12.4/windows

+5
source

Source: https://habr.com/ru/post/949278/


All Articles