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


Comments (3)


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!


Add Comment