]> granicus.if.org Git - php/commitdiff
exposing the libxpm version in phpinfo
authorAnatoliy Belsky <ab@php.net>
Thu, 4 Oct 2012 16:20:02 +0000 (18:20 +0200)
committerAnatoliy Belsky <ab@php.net>
Thu, 4 Oct 2012 16:20:02 +0000 (18:20 +0200)
ext/gd/gd.c

index ff14497f68aaa3bdfe28902b8f61fb264caf9734..3039cdd492e61c2dd25620417189c57a1b84af92 100644 (file)
@@ -1308,6 +1308,11 @@ PHP_MINFO_FUNCTION(gd)
 #endif
 #if defined(HAVE_GD_XPM) && defined(HAVE_GD_BUNDLED)
        php_info_print_table_row(2, "XPM Support", "enabled");
+       {
+               char tmp[12];
+               snprintf(tmp, sizeof(tmp), "%d", XpmLibraryVersion());
+               php_info_print_table_row(2, "libXpm Version", tmp);
+       }
 #endif
 #ifdef HAVE_GD_XBM
        php_info_print_table_row(2, "XBM Support", "enabled");