diff options
author | Remi Collet <remi@remirepo.net> | 2020-11-05 17:18:22 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2020-11-06 09:58:08 +0100 |
commit | e2509cf98a6fb5a5af5642a0d37effb68c432a6c (patch) | |
tree | ea017f68b3cd4a249a32b420d4168f38d1fd757c /ext/zip/php_zip.c | |
parent | 8d7ca472e50466e2756078592e444ea19da8807a (diff) | |
download | php-git-e2509cf98a6fb5a5af5642a0d37effb68c432a6c.tar.gz |
report about ZSTD compression availability
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r-- | ext/zip/php_zip.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index e36975a3be..cac33818c7 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -3226,6 +3226,12 @@ static PHP_MINFO_FUNCTION(zip) zip_compression_method_supported(ZIP_CM_BZIP2, 1) ? "Yes" : "No"); php_info_print_table_row(2, "XZ compression", zip_compression_method_supported(ZIP_CM_XZ, 1) ? "Yes" : "No"); +#ifdef ZIP_CM_ZSTD + php_info_print_table_row(2, "ZSTD compression", + zip_compression_method_supported(ZIP_CM_ZSTD, 1) ? "Yes" : "No"); +#else + php_info_print_table_row(2, "ZSTD compression", "No"); +#endif php_info_print_table_row(2, "AES-128 encryption", zip_encryption_method_supported(ZIP_EM_AES_128, 1) ? "Yes" : "No"); php_info_print_table_row(2, "AES-192 encryption", |