From: Rob Richards Date: Thu, 18 Nov 2004 16:36:00 +0000 (+0000) Subject: fix SAX2 handling to work with libxml 2.6.16 X-Git-Tag: RELEASE_0_2~659 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2496f4f882b225c84bb81474aad5a6a12d3d5f12;p=php fix SAX2 handling to work with libxml 2.6.16 --- diff --git a/ext/xml/compat.c b/ext/xml/compat.c index 7bb58c4d29..c8cdf18110 100644 --- a/ext/xml/compat.c +++ b/ext/xml/compat.c @@ -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,