Skip to content

Commit

Permalink
add extension version in phpinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Dec 2, 2020
1 parent fa8ea63 commit 6cf8c80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mcrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,8 @@ PHP_MINFO_FUNCTION(mcrypt) /* {{{ */
php_info_print_table_start();
php_info_print_table_header(2, "mcrypt support", "enabled");
php_info_print_table_header(2, "mcrypt_filter support", "enabled");
php_info_print_table_row(2, "Version", LIBMCRYPT_VERSION);
php_info_print_table_row(2, "Extension version", PHP_MCRYPT_VERSION);
php_info_print_table_row(2, "Library version", LIBMCRYPT_VERSION);
php_info_print_table_row(2, "Api No", mcrypt_api_no);
php_info_print_table_row(2, "Supported ciphers", ZSTR_VAL(tmp1.s));
php_info_print_table_row(2, "Supported modes", ZSTR_VAL(tmp2.s));
Expand Down

0 comments on commit 6cf8c80

Please sign in to comment.