From 2496f4f882b225c84bb81474aad5a6a12d3d5f12 Mon Sep 17 00:00:00 2001 From: Rob Richards Date: Thu, 18 Nov 2004 16:36:00 +0000 Subject: [PATCH] fix SAX2 handling to work with libxml 2.6.16 --- ext/xml/compat.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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, -- 2.50.1