From: Pierre Joye Date: Mon, 28 Feb 2005 08:13:35 +0000 (+0000) Subject: - create LIBXML_VERSION and LIBXML_DOTTED_VERSION constants X-Git-Tag: RELEASE_0_3~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4901a8e2b84fe7c786e2f2856a3ddfd1cc82904c;p=php - create LIBXML_VERSION and LIBXML_DOTTED_VERSION constants --- 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 */