com php-src: exposing the libxpm version in phpinfo: ext/gd/gd.c
| From: | Anatoliy Belsky | Date: | Thu, 04 Oct 2012 16:20:02 +0000 |
| Subject: | com php-src: exposing the libxpm version in phpinfo: ext/gd/gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-70311@lists.php.net to get a copy of this message | ||
Commit: 5d9fb8ffeb58d51c44f8a4b9f6b2eaabe271ce82
Author: Anatoliy Belsky <ab@php.net> Thu, 4 Oct 2012 18:20:02 +0200
Parents: b004a04f0aaf041e5fabaf788eee3e9ee0f3afaf
Branches: PHP-5.3 PHP-5.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5d9fb8ffeb58d51c44f8a4b9f6b2eaabe271ce82
Log:
exposing the libxpm version in phpinfo
Changed paths:
M ext/gd/gd.c
Diff:
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index ff14497..3039cdd 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");