From 588d7adcb2660ab6a4e1736b88c45b7e073aa74d Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 13 Feb 2013 22:06:37 +0400 Subject: Proper bit reset code (cherry picked from commit 188c196d4da60bdde9190d2fc532650d17f7af2d) --- ext/soap/php_xml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/soap/php_xml.c b/ext/soap/php_xml.c index a69d071164..006db854e4 100644 --- a/ext/soap/php_xml.c +++ b/ext/soap/php_xml.c @@ -92,7 +92,7 @@ xmlDocPtr soap_xmlParseFile(const char *filename TSRMLS_DC) PG(allow_url_fopen) = old_allow_url_fopen; if (ctxt) { ctxt->keepBlanks = 0; - ctxt->options -= XML_PARSE_DTDLOAD; + ctxt->options &= ~XML_PARSE_DTDLOAD; ctxt->sax->ignorableWhitespace = soap_ignorableWhitespace; ctxt->sax->comment = soap_Comment; ctxt->sax->warning = NULL; @@ -134,7 +134,7 @@ xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size) */ ctxt = xmlCreateMemoryParserCtxt(buf, buf_size); if (ctxt) { - ctxt->options -= XML_PARSE_DTDLOAD; + ctxt->options &= ~XML_PARSE_DTDLOAD; ctxt->sax->ignorableWhitespace = soap_ignorableWhitespace; ctxt->sax->comment = soap_Comment; ctxt->sax->warning = NULL; -- cgit v1.2.1