summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatoliy Belsky <ab@php.net>2012-10-04 18:20:02 +0200
committerAnatoliy Belsky <ab@php.net>2012-10-04 18:20:02 +0200
commit5d9fb8ffeb58d51c44f8a4b9f6b2eaabe271ce82 (patch)
treeb96aa34430aaf8a08f96a83e1655e41b0447388f
parentb004a04f0aaf041e5fabaf788eee3e9ee0f3afaf (diff)
downloadphp-git-5d9fb8ffeb58d51c44f8a4b9f6b2eaabe271ce82.tar.gz
exposing the libxpm version in phpinfo
-rw-r--r--ext/gd/gd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index ff14497f68..3039cdd492 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -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");