diff options
author | Pierre Joye <pajoye@php.net> | 2005-02-28 08:13:35 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2005-02-28 08:13:35 +0000 |
commit | 4901a8e2b84fe7c786e2f2856a3ddfd1cc82904c (patch) | |
tree | c0f7569cc1a7e11b442b9a4922c09a4183ff4f99 | |
parent | 401f813383072ac5b8761eeaf8ea1fee983ea8d0 (diff) | |
download | php-git-4901a8e2b84fe7c786e2f2856a3ddfd1cc82904c.tar.gz |
- create LIBXML_VERSION and LIBXML_DOTTED_VERSION constants
-rw-r--r-- | ext/libxml/libxml.c | 2 |
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 */ |