]> granicus.if.org Git - php/commitdiff
- add png and jpeg version info
authorPierre Joye <pajoye@php.net>
Tue, 4 Nov 2008 20:24:46 +0000 (20:24 +0000)
committerPierre Joye <pajoye@php.net>
Tue, 4 Nov 2008 20:24:46 +0000 (20:24 +0000)
ext/gd/gd.c

index d1aeb009e59831ebb34ff78231f5e79eb767d42c..dc53a349ea2278f54dd8d871493738f8c1e9e241 100644 (file)
@@ -1327,10 +1327,16 @@ PHP_MINFO_FUNCTION(gd)
        php_info_print_table_row(2, "GIF Create Support", "enabled");
 #endif
 #ifdef HAVE_GD_JPG
-       php_info_print_table_row(2, "JPG Support", "enabled");
+       {
+               char tmp[256];
+               snprintf(tmp, sizeof(tmp), "%d", JPEG_LIB_VERSION);
+               php_info_print_table_row(2, "JPG Support", "enabled");
+               php_info_print_table_row(2, "libJPEG Version", tmp);
+       }
 #endif
 #ifdef HAVE_GD_PNG
        php_info_print_table_row(2, "PNG Support", "enabled");
+       php_info_print_table_row(2, "libPNG Version", PNG_LIBPNG_VER_STRING);
 #endif
        php_info_print_table_row(2, "WBMP Support", "enabled");
 #if defined(HAVE_GD_XPM) && defined(HAVE_GD_BUNDLED)