summaryrefslogtreecommitdiff
path: root/ext/xsl
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-03-23 21:30:22 +0100
committerAnatol Belski <ab@php.net>2015-03-23 21:30:22 +0100
commit663074b6b1fa4534fbbb65462aeef40f2c983ad5 (patch)
treeeea8e6fa4c9aa305c12548dfda6d8f36f5c2957f /ext/xsl
parent19360f386ec3e78f7f57f9e943569410dc2f718f (diff)
downloadphp-git-663074b6b1fa4534fbbb65462aeef40f2c983ad5.tar.gz
cleanup mod version macros and mod defs, round x
Diffstat (limited to 'ext/xsl')
-rw-r--r--ext/xsl/php_xsl.c8
-rw-r--r--ext/xsl/php_xsl.h3
2 files changed, 4 insertions, 7 deletions
diff --git a/ext/xsl/php_xsl.c b/ext/xsl/php_xsl.c
index d89b4cbd33..60338bb997 100644
--- a/ext/xsl/php_xsl.c
+++ b/ext/xsl/php_xsl.c
@@ -47,12 +47,8 @@ static const zend_module_dep xsl_deps[] = {
/* {{{ xsl_module_entry
*/
zend_module_entry xsl_module_entry = {
-#if ZEND_MODULE_API_NO >= 20050617
STANDARD_MODULE_HEADER_EX, NULL,
xsl_deps,
-#elif ZEND_MODULE_API_NO >= 20010901
- STANDARD_MODULE_HEADER,
-#endif
"xsl",
xsl_functions,
PHP_MINIT(xsl),
@@ -60,9 +56,7 @@ zend_module_entry xsl_module_entry = {
NULL,
NULL,
PHP_MINFO(xsl),
-#if ZEND_MODULE_API_NO >= 20010901
- "0.1", /* Replace with version number for your extension */
-#endif
+ PHP_XSL_VERSION,
STANDARD_MODULE_PROPERTIES
};
/* }}} */
diff --git a/ext/xsl/php_xsl.h b/ext/xsl/php_xsl.h
index 38715eb8af..4250ae83d6 100644
--- a/ext/xsl/php_xsl.h
+++ b/ext/xsl/php_xsl.h
@@ -24,6 +24,9 @@
extern zend_module_entry xsl_module_entry;
#define phpext_xsl_ptr &xsl_module_entry
+#include "php_version.h"
+#define PHP_XSL_VERSION PHP_VERSION
+
#ifdef ZTS
#include "TSRM.h"
#endif