1.1.8: Creation in string, bugs fixes, new pure driver
Fixed:
- Fixed opening an archive with password (#37)
- Fixed
UnifiedArchive->getComment()now returns null when comment is not supported by driver (#39) - Fixed
UnifiedArchive->getFileData()->modificationTimeis integer timestamp now in case of NelexaZip driver instead of DateTimeImmutable (#38) - Fixed
PharData::createfor zip-archives
Deprecations:
- Renamed methods of
UnifiedArchive:getFileNames=>getFilesextractFiles=>extractaddFiles=>adddeleteFiles=>deletearchiveFiles=>archivecanOpenArchive=>canOpen- Old methods are marked as deprecated and will be deleted in future releases.
- Marked as deprecated:
UnifiedArchive::detectArchiveType- useFormats::detectArchiveFormatinsteadUnifiedArchive::archiveDirectory/archiveFile- useUnifiedArchive::archiveinsteadUnifiedArchive::canCreateType-Formats::canCreate
New functions:
- Added method to get file extension for format:
Formats::getFormatExtension($archiveFormat) - Added method to get info about ready to archive files:
UnifiedArchive->prepareForArchiving($fileOrFiles, $archiveName = null) - Added method to create archive in memory:
UnifiedArchive::createInString()andBasicDriver::CREATE_IN_STRINGability constant - Added new pure driver for Zip/Tar(gz/bz2) - SplitbrainPhpArchive.