From a048effc031914427df2d184d7728c8dcf502288 Mon Sep 17 00:00:00 2001 From: Nicolas Vion Date: Fri, 31 Oct 2008 17:46:38 +0000 Subject: [PATCH] * Add information about gd resources support in caca-php for phpinfo() --- caca-php/php_caca.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/caca-php/php_caca.c b/caca-php/php_caca.c index da884c1..0aa99a6 100644 --- a/caca-php/php_caca.c +++ b/caca-php/php_caca.c @@ -182,6 +182,12 @@ ZEND_GET_MODULE(caca) PHP_MINFO_FUNCTION(caca) { php_info_print_table_start(); php_info_print_table_row(2, "Caca library version", caca_get_version()); +#ifdef HAVE_GD + php_info_print_table_row(2, "Compiled with gd support", "YES"); + php_info_print_table_row(2, "Gd API version", GD_VERSION_STRING); +#else + php_info_print_table_row(2, "Compiled with gd support", "NO"); +#endif php_info_print_table_end(); }