From b496a2324c21b5b19a4e28ac15c8270c8810c0fe Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 7 Dec 2011 12:18:20 +0100 Subject: [PATCH] added Twig C extension version in phpinfo --- ext/twig/php_twig.h | 2 ++ ext/twig/twig.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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(); -- 1.7.2.5