From e80d8de42c989bec5752c884701840ab02307f6a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 5 Jun 2020 15:22:10 +0000 Subject: [PATCH] new method in zip 1.19.0 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350010 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/zip/versions.xml | 2 + .../iscompressionmethoddupported.xml | 93 +++++++++++++++++++ .../isencryptionmethoddupported.xml | 93 +++++++++++++++++++ 3 files changed, 188 insertions(+) create mode 100644 reference/zip/ziparchive/iscompressionmethoddupported.xml create mode 100644 reference/zip/ziparchive/isencryptionmethoddupported.xml diff --git a/reference/zip/versions.xml b/reference/zip/versions.xml index f3c2ddff5a..a3e91a561c 100644 --- a/reference/zip/versions.xml +++ b/reference/zip/versions.xml @@ -27,6 +27,8 @@ + + diff --git a/reference/zip/ziparchive/iscompressionmethoddupported.xml b/reference/zip/ziparchive/iscompressionmethoddupported.xml new file mode 100644 index 0000000000..e3dfffac87 --- /dev/null +++ b/reference/zip/ziparchive/iscompressionmethoddupported.xml @@ -0,0 +1,93 @@ + + + + + ZipArchive::isCompressionMethodSupported + Check if a compression method is supported by libzip + + + + &reftitle.description; + + boolZipArchive::isCompressionMethodSupported + intmethod + boolencodetrue + + + Check if a compression method is supported by libzip. + + + + + &reftitle.parameters; + + + + method + + + The compression method, one of the + ZipArchive::CM_* constants. + + + + + encode + + + If &true; check for compression, else check for decompression. + + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.notes; + + + This function is only available if built against libzip ≥ 1.7.0. + + + + + + &reftitle.seealso; + + + ZipArchive::setCompressionIndex + ZipArchive::setCompressionName + + + + + + + diff --git a/reference/zip/ziparchive/isencryptionmethoddupported.xml b/reference/zip/ziparchive/isencryptionmethoddupported.xml new file mode 100644 index 0000000000..cbf6c97ebd --- /dev/null +++ b/reference/zip/ziparchive/isencryptionmethoddupported.xml @@ -0,0 +1,93 @@ + + + + + ZipArchive::isEncryptionMethodSupported + Check if a encryption method is supported by libzip + + + + &reftitle.description; + + boolZipArchive::isEncryptionMethodSupported + intmethod + boolencodetrue + + + Check if a compression method is supported by libzip. + + + + + &reftitle.parameters; + + + + method + + + The encryption method, one of the + ZipArchive::EM_* constants. + + + + + encode + + + If &true; check for encryption, else check for decryption. + + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.notes; + + + This function is only available if built against libzip ≥ 1.7.0. + + + + + + &reftitle.seealso; + + + ZipArchive::setEncryptionIndex + ZipArchive::setEncryptionName + + + + + + +