From: Steph Fox Date: Mon, 31 Mar 2008 09:37:51 +0000 (+0000) Subject: - Bring the majority of PECL extensions into line with macro/x.x.x versioning. X-Git-Tag: RELEASE_2_0_0b1~526 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d834c32dea800de3e0d8a47da2f9f9b703717424;p=php - Bring the majority of PECL extensions into line with macro/x.x.x versioning. - Please use the -dev tag during the development cycle so that snapshots can easily be distinguished from releases. --- diff --git a/ext/enchant/enchant.c b/ext/enchant/enchant.c index 07ae10207c..18d18645f1 100755 --- a/ext/enchant/enchant.c +++ b/ext/enchant/enchant.c @@ -103,7 +103,7 @@ zend_module_entry enchant_module_entry = { NULL, /* Replace with NULL if there's nothing to do at request end */ PHP_MINFO(enchant), #if ZEND_MODULE_API_NO >= 20010901 - "0.1", /* Replace with version number for your extension */ + PHP_ENCHANT_VERSION, #endif STANDARD_MODULE_PROPERTIES }; @@ -256,7 +256,7 @@ PHP_MINFO_FUNCTION(enchant) pbroker = enchant_broker_init(); php_info_print_table_start(); php_info_print_table_header(2, "enchant support", "enabled"); - php_info_print_table_row(2, "Version", "@package_version@"); + php_info_print_table_row(2, "Version", PHP_ENCHANT_VERSION); php_info_print_table_row(2, "Revision", "$Revision$"); php_info_print_table_end(); diff --git a/ext/enchant/package.xml b/ext/enchant/package.xml index 01826fbbcf..e3cd7d901b 100755 --- a/ext/enchant/package.xml +++ b/ext/enchant/package.xml @@ -51,9 +51,7 @@ see www.abisource.com/enchant/ - - - + diff --git a/ext/enchant/php_enchant.h b/ext/enchant/php_enchant.h index 33f2441519..893a4c8809 100644 --- a/ext/enchant/php_enchant.h +++ b/ext/enchant/php_enchant.h @@ -24,6 +24,8 @@ extern zend_module_entry enchant_module_entry; #define phpext_enchant_ptr &enchant_module_entry +#define PHP_ENCHANT_VERSION "1.0.2-dev" + #ifdef PHP_WIN32 #define PHP_ENCHANT_API __declspec(dllexport) #else diff --git a/ext/fileinfo/fileinfo.c b/ext/fileinfo/fileinfo.c index 975b9c5349..867cb2e765 100644 --- a/ext/fileinfo/fileinfo.c +++ b/ext/fileinfo/fileinfo.c @@ -225,7 +225,7 @@ zend_module_entry fileinfo_module_entry = { NULL, PHP_MINFO(fileinfo), #if ZEND_MODULE_API_NO >= 20010901 - "0.1", /* Replace with version number for your extension */ + PHP_FILEINFO_VERSION, #endif STANDARD_MODULE_PROPERTIES }; @@ -241,6 +241,7 @@ PHP_MINFO_FUNCTION(fileinfo) { php_info_print_table_start(); php_info_print_table_header(2, "fileinfo support", "enabled"); + php_info_print_table_row(2, "version", PHP_FILEINFO_VERSION); php_info_print_table_end(); } /* }}} */ diff --git a/ext/fileinfo/php_fileinfo.h b/ext/fileinfo/php_fileinfo.h index 66c562172d..c8d548e656 100644 --- a/ext/fileinfo/php_fileinfo.h +++ b/ext/fileinfo/php_fileinfo.h @@ -24,6 +24,8 @@ extern zend_module_entry fileinfo_module_entry; #define phpext_fileinfo_ptr &fileinfo_module_entry +#define PHP_FILEINFO_VERSION "1.0.5-dev" + #ifdef PHP_WIN32 #define PHP_FILEINFO_API __declspec(dllexport) #else