zip pecl.php.net A zip management extension Zip is an extension to create, modify and read zip files. Pierre-Alain Joye pajoye pajoye@php.net yes 2006-07-14 1.6.0 1.6.0 beta alpha PHP License - Rename Class Zip to ZipArchive, required to be bundled in php 5.2.0 (Zip being a ZipCode in US), making the role of this class more obvious *Gah* 4.3.0 1.4.0 zip 2006-07-14 1.5.0 1.5.0 alpha alpha PHP License - bring consistency to the method names: - rename zip::delete() to deleteIndex() - add zip::deleteName() - rename zip::statPath to zip::statName() - rename zip::rename to zip::renameIndex() - add zip::renameName(); - add zip::locateName(), returns the index of an entry, allows case insensitive or directory free lookup (ZIP::FL_NOCASE, ZIP::FL_NODIR) - add zip::unchangeName(), ::unchangeIndex(), unchangeAll() and unchangeArchive() revert changes to an entry, to all entries or the archive - add zip::getNameIndex(), get the name of the entry at the given position - Bug #7658, Modify zip archives causes corruption if the data descriptor is used (bit 3 of the general flags) - fix a bug when in the delete and rename methods when the index is lower than 1 - zip::addFile() must return true on success - zip::open() returns now the error code on error and true on success 2006-06-28 1.4.1 1.4.0 alpha alpha PHP License - Add missing files in the package release 2006-06-28 1.4.0 1.4.0 alpha alpha PHP License - Add write mode to the archive comment (zip::comment property) - Add zip::setCommentName and ::setCommentIndex, add or remove entrie comment - Add zip::getCommentName and ::getCommentIndex, get an entrie comment - Add zip::setArchiveComment - Full sync with zip-0.7.1 - #8009, modify archives on windows cannot be closed 2006-04-26 1.3.1 1.3.0 alpha alpha PHP License - #7500, Fix build with php 5.1.0, 5.1.1 and 5.1.2 2006-04-26 1.3.0 1.3.0 alpha alpha - Fix possible leak with __set/__get in classes extending the Zip intern object (tony2001[at]php.net) - Added getFromName(), return the contents of an entry using its name - Added getFromIndex(), return the contents of an entry using its index 2006-03-30 1.2.3 1.2.1 alpha alpha PHP License - #7214, use binary safe string as return value, 0x00 was considered as the end of the content, affected only the procedural API 2006-03-22 1.2.2 1.2.1 alpha alpha PHP License - fix a bug in internal zip_close, new archives were not written - ::open returns now false on error - update the "create.php" example, status and returned codes are now checked - fix a leak when the ::open method is called twice or more with the same object 2006-03-19 1.2.1 1.2.1 alpha alpha PHP License - fixed a possible build problem (mkstemp missing) - fix a bug where extending the Zip class does allow to write to a property, see php bugs #36743 (array) 2006-03-12 1.2.0 1.2.0 alpha alpha PHP License - enable stream by default, * use uri like zip:///path/to/my.zip#entryname.dat (the URI format may change in future version) - add support for print_r/var_dump (Zip object) - add tests for the OO (still need more) - add more example, like using xmlreader and zip stream to parse OpenDocument meta info 2006-03-05 1.1.2 1.1.0 alpha alpha PHP License - do not create empty file when a zip entry is only a directory (empty or not) 2006-03-02 1.1.1 1.1.0 alpha alpha PHP License - Fix PHP 5.1 detection at compiletie - fix possible build errors with gcc other than 4.0.x - add better zlib detection - "--with-zlib-dir=[DIR]" added 2006-03-01 1.1.0 1.1.0 alpha alpha PHP License - replace the old zip extensions * 100% compatible with the old API * added zip creation support (write mode) * added OO interface * Stream support, getStream method returns a file handler - bundled libzip and drop zzlib usage (see http://www.nih.at/libzip/)