diff options
Diffstat (limited to 'ext/libxml')
| -rw-r--r-- | ext/libxml/libxml.c | 2 | ||||
| -rw-r--r-- | ext/libxml/php_libxml.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c index 52f5dabe69..b96d25aa80 100644 --- a/ext/libxml/libxml.c +++ b/ext/libxml/libxml.c @@ -144,7 +144,7 @@ zend_module_entry libxml_module_entry = { PHP_RINIT(libxml), /* per-request startup function */ PHP_RSHUTDOWN(libxml), /* per-request shutdown function */ PHP_MINFO(libxml), /* information function */ - NO_VERSION_YET, + PHP_LIBXML_VERSION, PHP_MODULE_GLOBALS(libxml), /* globals descriptor */ PHP_GINIT(libxml), /* globals ctor */ NULL, /* globals dtor */ diff --git a/ext/libxml/php_libxml.h b/ext/libxml/php_libxml.h index 39a140c516..5a68a57494 100644 --- a/ext/libxml/php_libxml.h +++ b/ext/libxml/php_libxml.h @@ -26,6 +26,9 @@ extern zend_module_entry libxml_module_entry; #define libxml_module_ptr &libxml_module_entry +#include "php_version.h" +#define PHP_LIBXML_VERSION PHP_VERSION + #ifdef PHP_WIN32 # define PHP_LIBXML_API __declspec(dllexport) #elif defined(__GNUC__) && __GNUC__ >= 4 |
