phpday 2027 - Call for Papers

ZipArchive::isEncryptionMethodSupported

(PHP >= 8.0.0, PECL zip >= 1.19.0)

ZipArchive::isEncryptionMethodSupported — 暗号化方式を libzip がサポートしているかどうかをチェックする

説明

public static function ZipArchive::isEncryptionMethodSupported(int $method, bool $enc = true): bool

暗号化方式を libzip がサポートしているかどうかをチェックします

パラメータ

method

暗号化方式。 定数 ZipArchive::EM_* のうちのいずれかです。

enc

true を設定すると、暗号化方式をチェックし、 false を設定すると、復号化方式をチェックします。

戻り値

成功した場合に true を、失敗した場合に false を返します。

注意

注意:

この関数は、libzip ≥ 1.7.0 を使ってPHPをビルドした場合にのみ利用可能です。

参考

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top