(PHP >= 7.2.0, PHP 8, PECL zip >= 1.14.0)
ZipArchive::setEncryptionIndex — index で定義されたエントリの暗号化方法を指定する
$index, int $method, #[\SensitiveParameter] ?string $password = null): boolindex で定義されたエントリの暗号化方法を設定します。
indexmethodpassword| バージョン | 説明 |
|---|---|
| 8.0.0 |
password は、nullable になりました。
|
注意: この関数は、libzip ≥ 1.2.0 でビルドされた場合にのみ利用可能です。