PHP 8.5.0 RC 2 available for testing

ZipArchive::isEncryptionMethodSupported

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

ZipArchive::isEncryptionMethodSupported โ€” Check if a encryption method is supported by libzip

่ฏดๆ˜Ž

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

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.

่ฟ”ๅ›žๅ€ผ

ๆˆๅŠŸๆ—ถ่ฟ”ๅ›ž true๏ผŒ ๆˆ–่€…ๅœจๅคฑ่ดฅๆ—ถ่ฟ”ๅ›ž falseใ€‚

ๆณจ้‡Š

ๆณจๆ„:

This function is only available if built against libzip โ‰ฅ 1.7.0.

ๅ‚่ง

๏ผ‹ๆทปๅŠ ๅค‡ๆณจ

็”จๆˆท่ดก็Œฎ็š„ๅค‡ๆณจ

ๆญค้กต้ขๅฐšๆ— ็”จๆˆท่ดก็Œฎ็š„ๅค‡ๆณจใ€‚
To Top