[PHP-CVS] com php-src: Proper bit reset code: ext/soap/php_xml.c

2013-02-13 Thread Stanislav Malyshev
Commit:904d2202eaecb7c300c36f37ebc5503513220c09
Author:Dmitry Stogov  Wed, 13 Feb 2013 22:06:37 
+0400
Committer: Stanislav Malyshev   Wed, 13 Feb 2013 13:02:53 
-0800
Parents:   24236fb4767711758008fd1b9a99ea583d2765a0
Branches:  PHP-5.4.12

Link:   
http://git.php.net/?p=php-src.git;a=commitdiff;h=904d2202eaecb7c300c36f37ebc5503513220c09

Log:
Proper bit reset code

Changed paths:
  M  ext/soap/php_xml.c


Diff:
diff --git a/ext/soap/php_xml.c b/ext/soap/php_xml.c
index 866cbe3..737a335 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;


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] com php-src: Proper bit reset code: ext/soap/php_xml.c

2013-02-13 Thread Dmitry Stogov
Commit:188c196d4da60bdde9190d2fc532650d17f7af2d
Author:Dmitry Stogov  Wed, 13 Feb 2013 22:06:37 
+0400
Parents:   afe98b7829d50806559acac9b530acb8283c3bf4
Branches:  PHP-5.3 PHP-5.4 PHP-5.5 master

Link:   
http://git.php.net/?p=php-src.git;a=commitdiff;h=188c196d4da60bdde9190d2fc532650d17f7af2d

Log:
Proper bit reset code

Changed paths:
  M  ext/soap/php_xml.c


Diff:
diff --git a/ext/soap/php_xml.c b/ext/soap/php_xml.c
index a69d071..006db85 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;


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php