summaryrefslogtreecommitdiff
path: root/ext/sockets
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/sockets
parent19360f386ec3e78f7f57f9e943569410dc2f718f (diff)
downloadphp-git-663074b6b1fa4534fbbb65462aeef40f2c983ad5.tar.gz
cleanup mod version macros and mod defs, round x
Diffstat (limited to 'ext/sockets')
-rw-r--r--ext/sockets/php_sockets.h2
-rw-r--r--ext/sockets/sockets.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ext/sockets/php_sockets.h b/ext/sockets/php_sockets.h
index 366a34dfec..2e90e120a4 100644
--- a/ext/sockets/php_sockets.h
+++ b/ext/sockets/php_sockets.h
@@ -35,6 +35,8 @@
# include "windows_common.h"
#endif
+#define PHP_SOCKETS_VERSION PHP_VERSION
+
extern zend_module_entry sockets_module_entry;
#define phpext_sockets_ptr &sockets_module_entry
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c
index 5f6c17af9a..45f7c25096 100644
--- a/ext/sockets/sockets.c
+++ b/ext/sockets/sockets.c
@@ -360,7 +360,7 @@ zend_module_entry sockets_module_entry = {
NULL,
PHP_RSHUTDOWN(sockets),
PHP_MINFO(sockets),
- NO_VERSION_YET,
+ PHP_SOCKETS_VERSION,
PHP_MODULE_GLOBALS(sockets),
PHP_GINIT(sockets),
NULL,