cvs: /php4/ext/gd gd.c

From: Date: Mon, 29 Nov 1999 23:22:25 +0000
Subject: cvs: /php4/ext/gd gd.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-7077@lists.php.net to get a copy of this message
steffann Mon Nov 29 18:22:25 1999 EDT Modified files: /php4/ext/gd gd.c Log: Show some extra info for GD with phpinfo() Index: php4/ext/gd/gd.c diff -u php4/ext/gd/gd.c:1.21 php4/ext/gd/gd.c:1.22 --- php4/ext/gd/gd.c:1.21 Wed Nov 24 17:04:49 1999 +++ php4/ext/gd/gd.c Mon Nov 29 18:21:52 1999 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.21 1999/11/24 22:04:49 eschmid Exp $ */ +/* $Id: gd.c,v 1.22 1999/11/29 23:21:52 steffann Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -176,13 +176,32 @@ 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 }

« previous php.version4 (#7077) next »