summaryrefslogtreecommitdiff
path: root/ext/xml/xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/xml/xml.c')
-rw-r--r--ext/xml/xml.c6
1 files changed, 5 insertions, 1 deletions
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();
}
/* }}} */