]> granicus.if.org Git - php/commitdiff
remove compiler warnings
authorChristian Stocker <chregu@php.net>
Mon, 23 Feb 2004 09:19:25 +0000 (09:19 +0000)
committerChristian Stocker <chregu@php.net>
Mon, 23 Feb 2004 09:19:25 +0000 (09:19 +0000)
ext/xml/compat.c
ext/xml/xml.c

index 7814465058d98baf4b12fd1e4c3c5ab62177a9ac..57b5f764a4587fe881018cc5228d542f9bc11f8d 100644 (file)
@@ -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)
index f9ddc740deecc61a4a42026ab07e92bae57337a8..1d91f6e1acb43edc5fd409c3cae53ea0eb211e13 100644 (file)
@@ -1110,7 +1110,7 @@ PHP_FUNCTION(xml_parser_create)
 PHP_FUNCTION(xml_parser_create_ns)
 {
 #if defined(HAVE_LIBXML) && defined(HAVE_XML) && !defined(HAVE_LIBEXPAT) && LIBXML_VERSION < 20600 
-       php_error_docref(NULL TSRMLS_CC, E_ERROR, "is broken with libxml2 %d. Please upgrade to libxml2 2.6", LIBXML_DOTTED_VERSION);
+       php_error_docref(NULL TSRMLS_CC, E_ERROR, "is broken with libxml2 %s. Please upgrade to libxml2 2.6", LIBXML_DOTTED_VERSION);
 #else
        php_xml_parser_create_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
 #endif