summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-03-23 20:13:59 +0100
committerAnatol Belski <ab@php.net>2015-03-23 20:13:59 +0100
commitec89c85054e44a0d4ea85f62601405843cd05d5d (patch)
tree35783a64f8e52f82a7dcd46cb5b272f176f7608d
parent88b2a2d40594bb9924eaaae123a5833a0ba36033 (diff)
downloadphp-git-ec89c85054e44a0d4ea85f62601405843cd05d5d.tar.gz
cleaning up the version macros
-rw-r--r--ext/bcmath/bcmath.c2
-rw-r--r--ext/bcmath/php_bcmath.h3
-rw-r--r--ext/bz2/bz2.c2
-rw-r--r--ext/bz2/php_bz2.h3
-rw-r--r--ext/calendar/calendar.c2
-rw-r--r--ext/calendar/php_calendar.h3
-rw-r--r--ext/com_dotnet/com_extension.c2
-rw-r--r--ext/com_dotnet/php_com_dotnet.h3
-rw-r--r--ext/ctype/ctype.c2
-rw-r--r--ext/ctype/php_ctype.h3
-rw-r--r--ext/curl/interface.c2
-rw-r--r--ext/curl/php_curl.h3
-rw-r--r--ext/date/php_date.c2
-rw-r--r--ext/date/php_date.h3
-rw-r--r--ext/dba/dba.c2
-rw-r--r--ext/dba/php_dba.h3
-rw-r--r--ext/enchant/enchant.c4
-rw-r--r--ext/exif/exif.c12
-rw-r--r--ext/exif/php_exif.h4
-rw-r--r--ext/filter/filter.c4
-rw-r--r--ext/filter/php_filter.h3
-rw-r--r--ext/ftp/php_ftp.c2
-rw-r--r--ext/ftp/php_ftp.h3
23 files changed, 46 insertions, 26 deletions
diff --git a/ext/bcmath/bcmath.c b/ext/bcmath/bcmath.c
index 14586f6cf3..5e8ec002bd 100644
--- a/ext/bcmath/bcmath.c
+++ b/ext/bcmath/bcmath.c
@@ -118,7 +118,7 @@ zend_module_entry bcmath_module_entry = {
NULL,
NULL,
PHP_MINFO(bcmath),
- NO_VERSION_YET,
+ PHP_BCMATH_VERSION,
PHP_MODULE_GLOBALS(bcmath),
PHP_GINIT(bcmath),
PHP_GSHUTDOWN(bcmath),
diff --git a/ext/bcmath/php_bcmath.h b/ext/bcmath/php_bcmath.h
index eab199f5fc..5cb65547aa 100644
--- a/ext/bcmath/php_bcmath.h
+++ b/ext/bcmath/php_bcmath.h
@@ -26,6 +26,9 @@
extern zend_module_entry bcmath_module_entry;
#define phpext_bcmath_ptr &bcmath_module_entry
+#include "php_version.h"
+#define PHP_BCMATH_VERSION PHP_VERSION
+
PHP_MINIT_FUNCTION(bcmath);
PHP_MSHUTDOWN_FUNCTION(bcmath);
PHP_MINFO_FUNCTION(bcmath);
diff --git a/ext/bz2/bz2.c b/ext/bz2/bz2.c
index f4d1665d45..921fc9954b 100644
--- a/ext/bz2/bz2.c
+++ b/ext/bz2/bz2.c
@@ -120,7 +120,7 @@ zend_module_entry bz2_module_entry = {
NULL,
NULL,
PHP_MINFO(bz2),
- NO_VERSION_YET,
+ PHP_BZ2_VERSION,
STANDARD_MODULE_PROPERTIES
};
diff --git a/ext/bz2/php_bz2.h b/ext/bz2/php_bz2.h
index b1aa4ca97c..d274cbc751 100644
--- a/ext/bz2/php_bz2.h
+++ b/ext/bz2/php_bz2.h
@@ -47,6 +47,9 @@ extern zend_module_entry bz2_module_entry;
# define PHP_BZ2_API
#endif
+#include "php_version.h"
+#define PHP_BZ2_VERSION PHP_VERSION
+
PHP_BZ2_API php_stream *_php_stream_bz2open(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
PHP_BZ2_API php_stream *_php_stream_bz2open_from_BZFILE(BZFILE *bz, const char *mode, php_stream *innerstream STREAMS_DC);
diff --git a/ext/calendar/calendar.c b/ext/calendar/calendar.c
index f84335bd33..73a2b3a03d 100644
--- a/ext/calendar/calendar.c
+++ b/ext/calendar/calendar.c
@@ -161,7 +161,7 @@ zend_module_entry calendar_module_entry = {
NULL,
NULL,
PHP_MINFO(calendar),
- NO_VERSION_YET,
+ PHP_CALENDAR_VERSION,
STANDARD_MODULE_PROPERTIES,
};
diff --git a/ext/calendar/php_calendar.h b/ext/calendar/php_calendar.h
index f574877a81..0566ce58c5 100644
--- a/ext/calendar/php_calendar.h
+++ b/ext/calendar/php_calendar.h
@@ -4,6 +4,9 @@
extern zend_module_entry calendar_module_entry;
#define calendar_module_ptr &calendar_module_entry
+#include "php_version.h"
+#define PHP_CALENDAR_VERSION PHP_VERSION
+
/* Functions */
PHP_MINIT_FUNCTION(calendar);
diff --git a/ext/com_dotnet/com_extension.c b/ext/com_dotnet/com_extension.c
index fcd1eff9c5..eeaf75399f 100644
--- a/ext/com_dotnet/com_extension.c
+++ b/ext/com_dotnet/com_extension.c
@@ -244,7 +244,7 @@ zend_module_entry com_dotnet_module_entry = {
PHP_RINIT(com_dotnet),
PHP_RSHUTDOWN(com_dotnet),
PHP_MINFO(com_dotnet),
- "0.1",
+ PHP_COM_DOTNET_VERSION,
PHP_MODULE_GLOBALS(com_dotnet),
PHP_GINIT(com_dotnet),
NULL,
diff --git a/ext/com_dotnet/php_com_dotnet.h b/ext/com_dotnet/php_com_dotnet.h
index 85ab9b827e..8ac6e039b6 100644
--- a/ext/com_dotnet/php_com_dotnet.h
+++ b/ext/com_dotnet/php_com_dotnet.h
@@ -36,6 +36,9 @@ extern zend_module_entry com_dotnet_module_entry;
# define PHP_COM_DOTNET_API
#endif
+#include "php_version.h"
+#define PHP_COM_DOTNET_VERSION PHP_VERSION
+
PHP_MINIT_FUNCTION(com_dotnet);
PHP_MSHUTDOWN_FUNCTION(com_dotnet);
PHP_RINIT_FUNCTION(com_dotnet);
diff --git a/ext/ctype/ctype.c b/ext/ctype/ctype.c
index ee4f876a20..ba555e2539 100644
--- a/ext/ctype/ctype.c
+++ b/ext/ctype/ctype.c
@@ -121,7 +121,7 @@ zend_module_entry ctype_module_entry = {
NULL,
NULL,
PHP_MINFO(ctype),
- NO_VERSION_YET,
+ PHP_CTYPE_VERSION,
STANDARD_MODULE_PROPERTIES
};
/* }}} */
diff --git a/ext/ctype/php_ctype.h b/ext/ctype/php_ctype.h
index 571dc3027c..b6c6775e87 100644
--- a/ext/ctype/php_ctype.h
+++ b/ext/ctype/php_ctype.h
@@ -19,6 +19,9 @@
#ifndef PHP_CTYPE_H
#define PHP_CTYPE_H
+#include "php_version.h"
+#define PHP_CTYPE_VERSION PHP_VERSION
+
#if HAVE_CTYPE
extern zend_module_entry ctype_module_entry;
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index 85cb33d00a..a51c03f47f 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -486,7 +486,7 @@ zend_module_entry curl_module_entry = {
NULL,
NULL,
PHP_MINFO(curl),
- NO_VERSION_YET,
+ PHP_CURL_VERSION,
STANDARD_MODULE_PROPERTIES
};
/* }}} */
diff --git a/ext/curl/php_curl.h b/ext/curl/php_curl.h
index bc3db650d9..a1ef16fcea 100644
--- a/ext/curl/php_curl.h
+++ b/ext/curl/php_curl.h
@@ -42,6 +42,9 @@
# define PHP_CURL_API
#endif
+#include "php_version.h"
+#define PHP_CURL_VERSION PHP_VERSION
+
#include <curl/curl.h>
#include <curl/multi.h>
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index bc423d2663..40e471bc94 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -667,7 +667,7 @@ zend_module_entry date_module_entry = {
PHP_RINIT(date), /* request startup */
PHP_RSHUTDOWN(date), /* request shutdown */
PHP_MINFO(date), /* extension info */
- PHP_VERSION, /* extension version */
+ PHP_DATE_VERSION, /* extension version */
PHP_MODULE_GLOBALS(date), /* globals descriptor */
PHP_GINIT(date), /* globals ctor */
NULL, /* globals dtor */
diff --git a/ext/date/php_date.h b/ext/date/php_date.h
index a423eab2d8..8492a41e77 100644
--- a/ext/date/php_date.h
+++ b/ext/date/php_date.h
@@ -24,6 +24,9 @@
#include "lib/timelib.h"
#include "Zend/zend_hash.h"
+#include "php_version.h"
+#define PHP_DATE_VERSION PHP_VERSION
+
extern zend_module_entry date_module_entry;
#define phpext_date_ptr &date_module_entry
diff --git a/ext/dba/dba.c b/ext/dba/dba.c
index d45ec96415..70e2f213c8 100644
--- a/ext/dba/dba.c
+++ b/ext/dba/dba.c
@@ -178,7 +178,7 @@ zend_module_entry dba_module_entry = {
NULL,
NULL,
PHP_MINFO(dba),
- NO_VERSION_YET,
+ PHP_DBA_VERSION,
PHP_MODULE_GLOBALS(dba),
PHP_GINIT(dba),
NULL,
diff --git a/ext/dba/php_dba.h b/ext/dba/php_dba.h
index 13dd3ab55f..aef4ceae7d 100644
--- a/ext/dba/php_dba.h
+++ b/ext/dba/php_dba.h
@@ -21,6 +21,9 @@
#ifndef PHP_DBA_H
#define PHP_DBA_H
+#include "php_version.h"
+#define PHP_DBA_VERSION PHP_VERSION
+
#if HAVE_DBA
typedef enum {
diff --git a/ext/enchant/enchant.c b/ext/enchant/enchant.c
index 298f355591..15ec453a59 100644
--- a/ext/enchant/enchant.c
+++ b/ext/enchant/enchant.c
@@ -151,9 +151,7 @@ zend_function_entry enchant_functions[] = {
/* {{{ enchant_module_entry
*/
zend_module_entry enchant_module_entry = {
-#if ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
-#endif
"enchant",
enchant_functions,
PHP_MINIT(enchant),
@@ -161,9 +159,7 @@ zend_module_entry enchant_module_entry = {
NULL, /* Replace with NULL if there's nothing to do at request start */
NULL, /* Replace with NULL if there's nothing to do at request end */
PHP_MINFO(enchant),
-#if ZEND_MODULE_API_NO >= 20010901
PHP_ENCHANT_VERSION,
-#endif
STANDARD_MODULE_PROPERTIES
};
/* }}} */
diff --git a/ext/exif/exif.c b/ext/exif/exif.c
index 8bdc0c8f27..e06308764f 100644
--- a/ext/exif/exif.c
+++ b/ext/exif/exif.c
@@ -128,15 +128,13 @@ const zend_function_entry exif_functions[] = {
};
/* }}} */
-#define EXIF_VERSION "1.4 $Id$"
-
/* {{{ PHP_MINFO_FUNCTION
*/
PHP_MINFO_FUNCTION(exif)
{
php_info_print_table_start();
php_info_print_table_row(2, "EXIF Support", "enabled");
- php_info_print_table_row(2, "EXIF Version", EXIF_VERSION);
+ php_info_print_table_row(2, "EXIF Version", PHP_EXIF_VERSION);
php_info_print_table_row(2, "Supported EXIF Version", "0220");
php_info_print_table_row(2, "Supported filetypes", "JPEG,TIFF");
php_info_print_table_end();
@@ -265,18 +263,12 @@ zend_module_entry exif_module_entry = {
PHP_MSHUTDOWN(exif),
NULL, NULL,
PHP_MINFO(exif),
-#if ZEND_MODULE_API_NO >= 20010901
- EXIF_VERSION,
-#endif
-#if ZEND_MODULE_API_NO >= 20060613
+ PHP_EXIF_VERSION,
PHP_MODULE_GLOBALS(exif),
PHP_GINIT(exif),
NULL,
NULL,
STANDARD_MODULE_PROPERTIES_EX
-#else
- STANDARD_MODULE_PROPERTIES
-#endif
};
/* }}} */
diff --git a/ext/exif/php_exif.h b/ext/exif/php_exif.h
index 87f2d93280..ed4c066e15 100644
--- a/ext/exif/php_exif.h
+++ b/ext/exif/php_exif.h
@@ -20,6 +20,10 @@
/* $Id$ */
#if HAVE_EXIF
+
+#include "php_version.h"
+#define PHP_EXIF_VERSION "1.4 $Id: 8bdc0c8f27c2c9dd1f7551f1f9fe3ab57a06a4b1 $"
+
extern zend_module_entry exif_module_entry;
#define phpext_exif_ptr &exif_module_entry
diff --git a/ext/filter/filter.c b/ext/filter/filter.c
index 475cfccb2e..67f190eda5 100644
--- a/ext/filter/filter.c
+++ b/ext/filter/filter.c
@@ -137,9 +137,7 @@ static const zend_function_entry filter_functions[] = {
/* {{{ filter_module_entry
*/
zend_module_entry filter_module_entry = {
-#if ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
-#endif
"filter",
filter_functions,
PHP_MINIT(filter),
@@ -147,7 +145,7 @@ zend_module_entry filter_module_entry = {
NULL,
PHP_RSHUTDOWN(filter),
PHP_MINFO(filter),
- "0.11.0",
+ PHP_FILTER_VERSION,
STANDARD_MODULE_PROPERTIES
};
/* }}} */
diff --git a/ext/filter/php_filter.h b/ext/filter/php_filter.h
index 87f469bafe..301b7aab3a 100644
--- a/ext/filter/php_filter.h
+++ b/ext/filter/php_filter.h
@@ -38,6 +38,9 @@ extern zend_module_entry filter_module_entry;
#include "TSRM.h"
#endif
+#include "php_version.h"
+#define PHP_FILTER_VERSION "0.11.0"
+
PHP_MINIT_FUNCTION(filter);
PHP_MSHUTDOWN_FUNCTION(filter);
PHP_RINIT_FUNCTION(filter);
diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c
index 2701891cfc..eaed5c6847 100644
--- a/ext/ftp/php_ftp.c
+++ b/ext/ftp/php_ftp.c
@@ -292,7 +292,7 @@ zend_module_entry php_ftp_module_entry = {
NULL,
NULL,
PHP_MINFO(ftp),
- NO_VERSION_YET,
+ PHP_FTP_VERSION,
STANDARD_MODULE_PROPERTIES
};
diff --git a/ext/ftp/php_ftp.h b/ext/ftp/php_ftp.h
index 054ec508ed..3ddc76f074 100644
--- a/ext/ftp/php_ftp.h
+++ b/ext/ftp/php_ftp.h
@@ -27,6 +27,9 @@
extern zend_module_entry php_ftp_module_entry;
#define php_ftp_module_ptr &php_ftp_module_entry
+#include "php_version.h"
+#define PHP_FTP_VERSION PHP_VERSION
+
#define PHP_FTP_OPT_TIMEOUT_SEC 0
#define PHP_FTP_OPT_AUTOSEEK 1
#define PHP_FTP_AUTORESUME -1