summaryrefslogtreecommitdiff
path: root/ext/gd/gd.c
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2014-12-26 08:33:21 +0100
committerRemi Collet <remi@php.net>2014-12-26 08:33:21 +0100
commitfaba23015363d608b3e21a120ac323bbd2e729e9 (patch)
tree0d3a739bb4a81e84a9177777c0d8a4185699bc2a /ext/gd/gd.c
parent316f72ce28f345228cc76f7ce537d593d33df765 (diff)
downloadphp-git-faba23015363d608b3e21a120ac323bbd2e729e9.tar.gz
Fix bug #68656 Report gd library version
Diffstat (limited to 'ext/gd/gd.c')
-rw-r--r--ext/gd/gd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 7bf0b757a9..1c30357a47 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -1289,7 +1289,14 @@ PHP_MINFO_FUNCTION(gd)
/* need to use a PHPAPI function here because it is external module in windows */
+#if defined(HAVE_GD_BUNDLED)
php_info_print_table_row(2, "GD Version", PHP_GD_VERSION_STRING);
+#else
+ php_info_print_table_row(2, "GD headers Version", PHP_GD_VERSION_STRING);
+#if defined(HAVE_GD_LIBVERSION)
+ php_info_print_table_row(2, "GD library Version", gdVersionString());
+#endif
+#endif
#ifdef ENABLE_GD_TTF
php_info_print_table_row(2, "FreeType Support", "enabled");