From 70fa1ff7f51089a5c1ffbde12c4e4a7e0f432fd9 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Sun, 25 May 2003 07:23:41 +0000 Subject: [PATCH] Hopefully get correct display of version information. --- ext/xml/xml.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/xml/xml.c b/ext/xml/xml.c index dea6f66f5c..d7324e05bd 100644 --- a/ext/xml/xml.c +++ b/ext/xml/xml.c @@ -261,7 +261,11 @@ PHP_MINFO_FUNCTION(xml) php_info_print_table_start(); php_info_print_table_row(2, "XML Support", "active"); php_info_print_table_row(2, "XML Namespace Support", "active"); - php_info_print_table_row(2, "EXPAT Version",XML_ExpatVersion()); +#ifdef LIBXML_DOTTED_VERSION + php_info_print_table_row(2, "libxml2 Version", LIBXML_DOTTED_VERSION); +#else + php_info_print_table_row(2, "EXPAT Version", XML_ExpatVersion()); +#endif php_info_print_table_end(); } /* }}} */ -- 2.40.0