Skip to content

Commit 904d220

Browse files
dstogovsmalyshev
authored andcommitted
Proper bit reset code
1 parent 24236fb commit 904d220

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/soap/php_xml.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ xmlDocPtr soap_xmlParseFile(const char *filename TSRMLS_DC)
9292
PG(allow_url_fopen) = old_allow_url_fopen;
9393
if (ctxt) {
9494
ctxt->keepBlanks = 0;
95-
ctxt->options -= XML_PARSE_DTDLOAD;
95+
ctxt->options &= ~XML_PARSE_DTDLOAD;
9696
ctxt->sax->ignorableWhitespace = soap_ignorableWhitespace;
9797
ctxt->sax->comment = soap_Comment;
9898
ctxt->sax->warning = NULL;
@@ -134,7 +134,7 @@ xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size)
134134
*/
135135
ctxt = xmlCreateMemoryParserCtxt(buf, buf_size);
136136
if (ctxt) {
137-
ctxt->options -= XML_PARSE_DTDLOAD;
137+
ctxt->options &= ~XML_PARSE_DTDLOAD;
138138
ctxt->sax->ignorableWhitespace = soap_ignorableWhitespace;
139139
ctxt->sax->comment = soap_Comment;
140140
ctxt->sax->warning = NULL;

0 commit comments

Comments
 (0)