Display current version as well as compiled version

This commit is contained in:
Adam Dickmeiss 2003-05-18 20:40:05 +00:00
parent 94925b1c33
commit 5a848c6f25

View File

@ -1542,10 +1542,13 @@ PHP_MSHUTDOWN_FUNCTION(yaz)
PHP_MINFO_FUNCTION(yaz)
{
char version_str[20];
yaz_version(version_str, 0);
php_info_print_table_start();
php_info_print_table_row(2, "YAZ Support", "enabled");
php_info_print_table_row(2, "YAZ Version", YAZ_VERSION);
php_info_print_table_row(2, "ZOOM", "enabled");
php_info_print_table_row(2, "YAZ Version", version_str);
php_info_print_table_row(2, "Compiled with YAZ version", YAZ_VERSION);
php_info_print_table_end();
}