summaryrefslogtreecommitdiff
path: root/ext/gd/gd.c
diff options
context:
space:
mode:
authorSander Steffann <steffann@php.net>1999-11-29 23:21:52 +0000
committerSander Steffann <steffann@php.net>1999-11-29 23:21:52 +0000
commitfc56fc8ae061644d5b50c9d596f5e9e8a9a37d6c (patch)
treeb7a92b8f3e33b5a9244aadb3fc961c942544cbba /ext/gd/gd.c
parent5c0f205383a708ea35be248e8cb203c5ec6f8e67 (diff)
downloadphp-git-fc56fc8ae061644d5b50c9d596f5e9e8a9a37d6c.tar.gz
Show some extra info for GD with phpinfo()
Diffstat (limited to 'ext/gd/gd.c')
-rw-r--r--ext/gd/gd.c23
1 files changed, 21 insertions, 2 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 1441275be3..b1f40ccddd 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -176,13 +176,32 @@ PHP_MINIT_FUNCTION(gd)
PHP_MINFO_FUNCTION(gd)
{
/* need to use a PHPAPI function here because it is external module in windows */
-#if HAVE_LIBGD13
- php_printf("Version 1.3");
+#if HAVE_GDIMAGECOLORRESOLVE
+ php_printf("Version 1.6.2 or higher");
+#elif HAVE_LIBGD13
+ php_printf("Version between 1.3 and 1.6.1");
#else
php_printf("Version 1.2");
#endif
+
#ifdef ENABLE_GD_TTF
php_printf(" with FreeType support");
+#if HAVE_LIBFREETYPE
+ php_printf(" (linked with freetype)");
+#elif HAVE_LIBTTF
+ php_printf(" (linked with ttf library)");
+#else
+ php_printf(" (linked with unknown library)");
+#endif
+#endif
+
+ php_printf(" which supports:");
+
+#ifdef HAVE_GD_GIF
+ php_printf(" GIF");
+#endif
+#ifdef HAVE_GD_PNG
+ php_printf(" PNG");
#endif
}