summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2013-02-13 22:06:37 +0400
committerStanislav Malyshev <stas@php.net>2013-02-13 13:02:53 -0800
commit904d2202eaecb7c300c36f37ebc5503513220c09 (patch)
treee5405bc504d4b6600b5f4821d859a2b7b385c8d9
parent24236fb4767711758008fd1b9a99ea583d2765a0 (diff)
downloadphp-git-904d2202eaecb7c300c36f37ebc5503513220c09.tar.gz
Proper bit reset codephp-5.4.12RC2
-rw-r--r--ext/soap/php_xml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/soap/php_xml.c b/ext/soap/php_xml.c
index 866cbe3ebf..737a335e3a 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;