From: Pierre Joye Date: Tue, 4 Nov 2008 20:24:46 +0000 (+0000) Subject: - add png and jpeg version info X-Git-Tag: BEFORE_HEAD_NS_CHANGE~88 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2b7db73b4a1bd16fa1de928925a1f58d13ee22b;p=php - add png and jpeg version info --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index d1aeb009e5..dc53a349ea 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -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)