Browse Source

* Add information about gd resources support in caca-php for phpinfo()

tags/v0.99.beta17
Nicolas Vion nico 16 years ago
parent
commit
a048effc03
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      caca-php/php_caca.c

+ 6
- 0
caca-php/php_caca.c View File

@@ -182,6 +182,12 @@ ZEND_GET_MODULE(caca)
PHP_MINFO_FUNCTION(caca) { PHP_MINFO_FUNCTION(caca) {
php_info_print_table_start(); php_info_print_table_start();
php_info_print_table_row(2, "Caca library version", caca_get_version()); 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(); php_info_print_table_end();
} }




Loading…
Cancel
Save