array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'ziparchive.isencryptionmethoddupported.php', 1 => 'ZipArchive::isEncryptionMethodSupported', ), 'up' => array ( 0 => 'class.ziparchive.php', 1 => 'ZipArchive', ), 'prev' => array ( 0 => 'ziparchive.iscompressionmethoddupported.php', 1 => 'ZipArchive::isCompressionMethodSupported', ), 'next' => array ( 0 => 'ziparchive.locatename.php', 1 => 'ZipArchive::locateName', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/zip/ziparchive/isencryptionmethoddupported.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP >= 8.0.0, PECL zip >= 1.19.0)
ZipArchive::isEncryptionMethodSupported — Check if a encryption method is supported by libzip
Check if a compression method is supported by libzip.
method
The encryption method, one of the
ZipArchive::EM_*
constants.
enc
If true
check for encryption, else check for decryption.
Nota:
This function is only available if built against libzip ≥ 1.7.0.