[php-src] PHP-8.4: ext/zip: Fix AES-192 and AES-256 support reporting in phpinfo() (#23319)
Weilin Du via GitHub <[email protected]>
| Newsgroups | gmane.comp.php.cvs.general |
|---|---|
| Message-ID | <[email protected]> |
Author: Weilin Du (LamentXU123) Committer: GitHub (web-flow) Pusher: LamentXU123 Date: 2026-08-17T01:03:41+08:00 Commit: https://github.com/php/php-src/commit/d9c58ee8a2270b4c139a40001d75d31bd197217e Raw diff: https://github.com/php/php-src/commit/d9c58ee8a2270b4c139a40001d75d31bd197217e.diff ext/zip: Fix AES-192 and AES-256 support reporting in phpinfo() (#23319) Fixed phpinfo() reporting AES-192 and AES-256 encryption support based on AES-128 support. Changed paths: M ext/zip/php_zip.c Diff: diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 3d6abde1c312..5330d78b36b0 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -3321,9 +3321,9 @@ static PHP_MINFO_FUNCTION(zip) 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", - zip_encryption_method_supported(ZIP_EM_AES_128, 1) ? "Yes" : "No"); + zip_encryption_method_supported(ZIP_EM_AES_192, 1) ? "Yes" : "No"); php_info_print_table_row(2, "AES-256 encryption", - zip_encryption_method_supported(ZIP_EM_AES_128, 1) ? "Yes" : "No"); + zip_encryption_method_supported(ZIP_EM_AES_256, 1) ? "Yes" : "No"); #endif php_info_print_table_end();