List Archive


Thread Index


From: Remi Collet <>
Subject: Public API to check for optional feature
Date: Thu, 13 Feb 2020 11:07:44 +0100


Some recently added features are optional:

* bzip2 compression
* AES encryption
* xz compression

I think it make sense to have some public method
to be able to check if available.

For example, on some archive application, to be
able to offer compression algo choice, among available
ones (else, have to try and check failure code)

PR open

* zip_compression_method_supported already exists
  and is only changed to be public

* zip_encryption_method_supported added

* ziptools changed to take benefit of this

Feedback / review welcome


P.S. also planed to be added in PHP zip extension.

Attachment: signature.asc
Description: OpenPGP digital signature

Made by MHonArc.