From: Christian Stocker Date: Tue, 24 Feb 2004 14:26:27 +0000 (+0000) Subject: fix for bug 27349 "Invalid parsing of CDATA sections in XSL templates" X-Git-Tag: php-4.3.5RC4~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4c30e6b89079037c6197cd56a7e9c282c70156f;p=php fix for bug 27349 "Invalid parsing of CDATA sections in XSL templates" --- diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index 7a159fc6d6..09b404456a 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -3981,6 +3981,9 @@ static xmlDocPtr domxml_document_parser(int mode, int loadtype, char *source, vo ctxt->sax->error = domxml_error_ext; ctxt->sax->warning = domxml_error_ext; +#if LIBXML_VERSION >= 20600 + ctxt->sax->cdataBlock = NULL; +#endif ctxt->vctxt.userData= (void *) &errorCtxt; ctxt->vctxt.error = (xmlValidityErrorFunc) domxml_error_validate; ctxt->vctxt.warning = (xmlValidityWarningFunc) domxml_error_validate;