Skip to content

Commit 9a99426

Browse files
committed
Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3: exposing the libxpm version in phpinfo
2 parents 34eb787 + 5d9fb8f commit 9a99426

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/gd/gd.c

+5
Original file line numberDiff line numberDiff line change
@@ -1328,6 +1328,11 @@ PHP_MINFO_FUNCTION(gd)
13281328
#endif
13291329
#if defined(HAVE_GD_XPM) && defined(HAVE_GD_BUNDLED)
13301330
php_info_print_table_row(2, "XPM Support", "enabled");
1331+
{
1332+
char tmp[12];
1333+
snprintf(tmp, sizeof(tmp), "%d", XpmLibraryVersion());
1334+
php_info_print_table_row(2, "libXpm Version", tmp);
1335+
}
13311336
#endif
13321337
#ifdef HAVE_GD_XBM
13331338
php_info_print_table_row(2, "XBM Support", "enabled");

0 commit comments

Comments
 (0)