Skip to content

Commit 188c196

Browse files
committed
Proper bit reset code
1 parent afe98b7 commit 188c196

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/soap/php_xml.c

Lines changed: 2 additions & 2 deletions
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)