Posted by brant : 2008-02-28 at 5:30 pm

You compiled PHP 5.2.x with zlib figuring that zip support has been installed.  Yet you still get an error saying "Fatal Error Class 'ZipArchive' not found".  So what to do?

As it turns out you have compiled PHP to work with zlib, yes, but you forgot to enable zip support!  php.net/zip says: "In order to use these functions you must compile PHP with zip support by using the --enable-zip configure option."

Once you do that you should be just fine.  I encountered this error and didn't see much in the ways of helpful advice.

Now get back to coding.



Similar Blogs:
Site Themes

blog comments powered by Disqus

OLD Comments (5)


wrxbuzz - 2009-12-31 at 14:06:21
Sweet!!! I was banging my head for 3 hours to figure out how to install this php_zip extention. Simply reconfigured PHP all over again with --enable-zip and walla!! its working!!! Brant you're the KING!!!

Programming - 2008-12-05 at 19:17:47
My solution for this problem was to install php 5.2 and the php5-zip package

jiro - 2008-09-08 at 07:34:43
Add "extension=php_zip.dll" in your php.ini
and zlib.output_compression = On

Amy - 2008-05-06 at 07:03:19
How do "compile PHP with zip support by using the --enable-zip configure option."?

:)

Many Thanks

init7 - 2008-05-05 at 06:34:22
Thanks brant, it solve the problem.
Greetings!