zip - php ZipArchive - do I have this class if I have zip_open? -


simple question really, i'm not sure answer: if have zip_* functions (http://php.net/manual/en/ref.zip.php) available, mean have ziparchive class (http://php.net/manual/en/class.ziparchive.php) available? php 5.3+.

first, requirements same. both use zlib if it's installed, not have requirement problem.

both uses same installation page , need same configure options. if 1 works, other 1 work too. need make sure php compiled --enable-zip.

you can check php -m | grep zlib command line. , phpinfo or php -i show zlib , zip version similar this:

zip  zip => enabled  extension version => $id:abc21c7f1559e732dba6db94c69ecf638ae5fa3f $  zip version => 1.11.0 libzip version => 0.10.1   zlib  zlib support => enabled  stream wrapper => compress.zlib://  stream filter => zlib.inflate, zlib.deflate  compiled version => 1.2.8  linked version => 1.2.8 

Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -