Skip to content

Commit

Permalink
report about ZSTD compression availability
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Nov 6, 2020
1 parent 8d7ca47 commit e2509cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ext/zip/php_zip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e2509cf

Please sign in to comment.