]> granicus.if.org Git - php/commitdiff
- Bring the majority of PECL extensions into line with macro/x.x.x versioning.
authorSteph Fox <sfox@php.net>
Mon, 31 Mar 2008 09:37:51 +0000 (09:37 +0000)
committerSteph Fox <sfox@php.net>
Mon, 31 Mar 2008 09:37:51 +0000 (09:37 +0000)
- Please use the -dev tag during the development cycle so that snapshots can easily be distinguished from releases.

ext/enchant/enchant.c
ext/enchant/package.xml
ext/enchant/php_enchant.h
ext/fileinfo/fileinfo.c
ext/fileinfo/php_fileinfo.h

index 07ae10207c3644f44da9db39637454d2d9fac9d0..18d18645f14ada18cde00b6a1dbbebc4dddc5425 100755 (executable)
@@ -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();
 
index 01826fbbcf27f36d3bc33dd9791c1aa4ae1f40b6..e3cd7d901bcf7c1d2d40160b20ffccd573c7cf5b 100755 (executable)
@@ -51,9 +51,7 @@ see www.abisource.com/enchant/
       <file name="config.m4" role="src"/>
       <file name="config.w32" role="src"/>
       <file name="CREDITS" role="doc"/>
-      <file name="enchant.c" role="src">
-        <tasks:replace from="@package_version@" to="version" type="package-info"/>
-      </file>
+      <file name="enchant.c" role="src"/>
       <file name="php_enchant.h" role="src"/>
       <dir name="tests">
              <file name="broker_describe.phpt" role="test"/>
index 33f24415192dcab86ba09d3d37d8a91d681de1ee..893a4c880901e6792404686f389e7ca0bf713762 100644 (file)
@@ -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
index 975b9c5349aa223188ed7cd631407baf82e31e8b..867cb2e7653b6a7279ac187a50dbab64a23583f5 100644 (file)
@@ -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();
 }
 /* }}} */
index 66c562172d7a291dca5de547bf3ba1d8b94a0aa1..c8d548e6562ed83dd123215f90ad9d7a3e4255e4 100644 (file)
@@ -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