summaryrefslogtreecommitdiff
path: root/ext/xml/compat.c
diff options
context:
space:
mode:
authorChristian Stocker <chregu@php.net>2004-02-23 09:19:25 +0000
committerChristian Stocker <chregu@php.net>2004-02-23 09:19:25 +0000
commit830d453a2f707f186051d2d3ae5ab3baa08d3edf (patch)
tree5aef5a2c1297acc3856fa7a8c0943be795f630c3 /ext/xml/compat.c
parent4a14e5c30d2faa955f158249a036cdd5ddd876e7 (diff)
downloadphp-git-830d453a2f707f186051d2d3ae5ab3baa08d3edf.tar.gz
remove compiler warnings
Diffstat (limited to 'ext/xml/compat.c')
-rw-r--r--ext/xml/compat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/xml/compat.c b/ext/xml/compat.c
index 7814465058..57b5f764a4 100644
--- a/ext/xml/compat.c
+++ b/ext/xml/compat.c
@@ -33,6 +33,7 @@ typedef struct _php_xml_ns {
((__ns) != NULL && strlen(__ns) == 5 && *(__ns) == 'x' && *((__ns)+1) == 'm' && \
*((__ns)+2) == 'l' && *((__ns)+3) == 'n' && *((__ns)+4) == 's')
+#if LIBXML_VERSION >= 20600
static void
_qualify_namespace(XML_Parser parser, const xmlChar *name, const xmlChar *URI, xmlChar **qualified)
{
@@ -45,6 +46,7 @@ _qualify_namespace(XML_Parser parser, const xmlChar *name, const xmlChar *URI, x
*qualified = xmlStrdup(name);
}
}
+#endif
static void
_start_element_handler(void *user, const xmlChar *name, const xmlChar **attributes)