summaryrefslogtreecommitdiff
path: root/ext/xml/compat.c
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2004-11-18 16:36:00 +0000
committerRob Richards <rrichards@php.net>2004-11-18 16:36:00 +0000
commit2496f4f882b225c84bb81474aad5a6a12d3d5f12 (patch)
tree943a1daabc636c827fc9298c6233f559982e37b7 /ext/xml/compat.c
parentbd8aba8c8d9d80fe31704b2b7f848c283a47bba6 (diff)
downloadphp-git-2496f4f882b225c84bb81474aad5a6a12d3d5f12.tar.gz
fix SAX2 handling to work with libxml 2.6.16
Diffstat (limited to 'ext/xml/compat.c')
-rw-r--r--ext/xml/compat.c7
1 files 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,