com php-src: cleaning up the version macros: ext/bcmath/bcmath.c ext/bcmath/php_bcmath.h ext/bz2/bz2.c ext/bz2/p hp_bz2.h ext/calendar/calendar.c
ext/calendar/php _calendar.h ext/com_dotnet/com_extension.c ext/co m_dotnet/php_com_dotnet.h ext/ctype/ctype.c ext/c type/php_ctype.h
ext/curl/interface.c ext/curl/php_ curl.h ext/date/php_date.c ext/date/php_date.h ext/dba/dba.c ext/dba/php_dba.h ext/enchant/enchant .c
ext/exif/exif.c ext/exif/php_exif.h ext

From: Date: Mon, 23 Mar 2015 19:13:59 +0000
Subject: com php-src: cleaning up the version macros: ext/bcmath/bcmath.c ext/bcmath/php_bcmath.h ext/bz2/bz2.c ext/bz2/p hp_bz2.h ext/calendar/calendar.c
ext/calendar/php _calendar.h ext/com_dotnet/com_extension.c ext/co m_dotnet/php_com_dotnet.h ext/ctype/ctype.c ext/c type/php_ctype.h
ext/curl/interface.c ext/curl/php_ curl.h ext/date/php_date.c ext/date/php_date.h ext/dba/dba.c ext/dba/php_dba.h ext/enchant/enchant .c
ext/exif/exif.c ext/exif/php_exif.h ext
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85834@lists.php.net to get a copy of this message
Commit: ec89c85054e44a0d4ea85f62601405843cd05d5d Author: Anatol Belski <ab@php.net> Mon, 23 Mar 2015 20:13:59 +0100 Parents: 88b2a2d40594bb9924eaaae123a5833a0ba36033 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ec89c85054e44a0d4ea85f62601405843cd05d5d Log: cleaning up the version macros Changed paths: M ext/bcmath/bcmath.c M ext/bcmath/php_bcmath.h M ext/bz2/bz2.c M ext/bz2/php_bz2.h M ext/calendar/calendar.c M ext/calendar/php_calendar.h M ext/com_dotnet/com_extension.c M ext/com_dotnet/php_com_dotnet.h M ext/ctype/ctype.c M ext/ctype/php_ctype.h M ext/curl/interface.c M ext/curl/php_curl.h M ext/date/php_date.c M ext/date/php_date.h M ext/dba/dba.c M ext/dba/php_dba.h M ext/enchant/enchant.c M ext/exif/exif.c M ext/exif/php_exif.h M ext/filter/filter.c M ext/filter/php_filter.h M ext/ftp/php_ftp.c M ext/ftp/php_ftp.h

diff --git a/ext/bcmath/bcmath.c b/ext/bcmath/bcmath.c index 14586f6..5e8ec00 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 eab199f..5cb6554 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 f4d1665..921fc99 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 b1aa4ca..d274cbc 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 f84335b..73a2b3a 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 f574877..0566ce5 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 fcd1eff..eeaf753 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 85ab9b8..8ac6e03 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 ee4f876..ba555e2 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 571dc30..b6c6775 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 85cb33d..a51c03f 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 bc3db65..a1ef16f 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 bc423d2..40e471b 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 a423eab..8492a41 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 d45ec96..70e2f21 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 13dd3ab..aef4cea 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 298f355..15ec453 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 8bdc0c8..e063087 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 87f2d93..ed4c066 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 475cfcc..67f190e 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 87f469b..301b7aa 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 2701891..eaed5c6 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 054ec50..3ddc76f 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
« previous php.cvs (#85834) next »