]> granicus.if.org Git - php/commitdiff
fix SAX2 handling to work with libxml 2.6.16
authorRob Richards <rrichards@php.net>
Thu, 18 Nov 2004 16:36:00 +0000 (16:36 +0000)
committerRob Richards <rrichards@php.net>
Thu, 18 Nov 2004 16:36:00 +0000 (16:36 +0000)
ext/xml/compat.c

index 7bb58c4d290a46944955a638c0e6f50ce7592908..c8cdf1811074124b0e534a268497c7fcf882801d 100644 (file)
@@ -305,9 +305,10 @@ php_xml_compat_handlers = {
        NULL,  /* getParameterEntity */
        _cdata_handler, /* cdataBlock */
        NULL, /* externalSubset */
-       1
-#if LIBXML_VERSION >= 20600 
-       ,
+#if LIBXML_VERSION < 20600
+       1,
+#else
+       XML_SAX2_MAGIC,
        NULL,
        _start_element_handler_ns,
        _end_element_handler_ns,