From: Rob Richards Date: Thu, 18 Nov 2004 16:36:34 +0000 (+0000) Subject: MFH: fix SAX2 handling to work with libxml 2.6.16 X-Git-Tag: php-5.0.3RC1~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69644e92723865f6d866ea101931b00b1155bbbb;p=php MFH: 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,