Reputation: 9487
I read on the documentation I should only compile PHP 5.3.3 with "--enable-zip" parameter, but this doesn't work. I did this but class_exists('ZipArchive')
always return false
. What should I do next?
Upvotes: 0
Views: 47733
Reputation: 51
pecl install zip: compilation terminated. make: *** [php_zip.lo] Error 1 ERROR: `make' failed
Upvotes: 0
Reputation: 60584
Have you tried installing ZipArchive using pecl?
$ pecl install zip
then add extension=zip.so to your php.ini
Upvotes: 21
Reputation: 393
Make sure that the Zip class is being loaded by your server by,
[ >= PHP 5.3]
If you are checking if a class exists that is in a specific namespace then you have to pass in the full path to the class:
echo (class_exists("com::richardsumilang::common::MyClass")) ? "Yes" : "No";
Hope that helps.
Upvotes: 0