Skip to content

Commit 5d9fb8f

Browse files
committed
exposing the libxpm version in phpinfo
1 parent b004a04 commit 5d9fb8f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/gd/gd.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,6 +1308,11 @@ PHP_MINFO_FUNCTION(gd)
13081308
#endif
13091309
#if defined(HAVE_GD_XPM) && defined(HAVE_GD_BUNDLED)
13101310
php_info_print_table_row(2, "XPM Support", "enabled");
1311+
{
1312+
char tmp[12];
1313+
snprintf(tmp, sizeof(tmp), "%d", XpmLibraryVersion());
1314+
php_info_print_table_row(2, "libXpm Version", tmp);
1315+
}
13111316
#endif
13121317
#ifdef HAVE_GD_XBM
13131318
php_info_print_table_row(2, "XBM Support", "enabled");

0 commit comments

Comments
 (0)