summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/libxml/libxml.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c
index 1e2d1c3c52..d20770293e 100644
--- a/ext/libxml/libxml.c
+++ b/ext/libxml/libxml.c
@@ -530,6 +530,8 @@ PHP_MINIT_FUNCTION(libxml)
LIBXML(error_buffer).c = NULL;
LIBXML(error_list) = NULL;
#endif
+ REGISTER_LONG_CONSTANT("LIBXML_VERSION", LIBXML_VERSION, CONST_CS | CONST_PERSISTENT);
+ REGISTER_STRING_CONSTANT("LIBXML_DOTTED_VERSION", LIBXML_DOTTED_VERSION, CONST_CS | CONST_PERSISTENT);
#if LIBXML_VERSION >= 20600
/* For use with loading xml */