From: Fabien Potencier Date: Wed, 7 Dec 2011 11:18:20 +0000 (+0100) Subject: added Twig C extension version in phpinfo X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=b496a2324c21b5b19a4e28ac15c8270c8810c0fe;p=konrad%2Ftwig.git added Twig C extension version in phpinfo --- diff --git a/ext/twig/php_twig.h b/ext/twig/php_twig.h index 75aabab..b63f26c 100644 --- a/ext/twig/php_twig.h +++ b/ext/twig/php_twig.h @@ -15,6 +15,8 @@ #ifndef PHP_TWIG_H #define PHP_TWIG_H +#define PHP_TWIG_VERSION "1.5.0-DEV" + #include "php.h" extern zend_module_entry twig_module_entry; diff --git a/ext/twig/twig.c b/ext/twig/twig.c index 70a0e2a..39f4bec 100644 --- a/ext/twig/twig.c +++ b/ext/twig/twig.c @@ -54,7 +54,7 @@ zend_module_entry twig_module_entry = { PHP_RSHUTDOWN(twig), PHP_MINFO(twig), #if ZEND_MODULE_API_NO >= 20010901 - "1.5.0-DEV", + PHP_TWIG_VERSION, #endif STANDARD_MODULE_PROPERTIES }; @@ -100,7 +100,8 @@ PHP_RSHUTDOWN_FUNCTION(twig) PHP_MINFO_FUNCTION(twig) { php_info_print_table_start(); - php_info_print_table_header(2, "twig support", "enabled"); + php_info_print_table_header(2, "Twig support", "enabled"); + php_info_print_table_row(2, "Version", PHP_TWIG_VERSION); php_info_print_table_end(); DISPLAY_INI_ENTRIES();