]> granicus.if.org Git - php/commitdiff
Fix #38354 (Unwanted reformatting of XML when using AsXML)
authorChristian Stocker <chregu@php.net>
Sun, 6 Aug 2006 19:38:45 +0000 (19:38 +0000)
committerChristian Stocker <chregu@php.net>
Sun, 6 Aug 2006 19:38:45 +0000 (19:38 +0000)
NEWS
ext/simplexml/simplexml.c

diff --git a/NEWS b/NEWS
index 37b69e5dcfe155631a046fbadfec3667d56f62fa..ba349ffe3faa1cdd10f00aaad54c82c302edb3d5 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -30,6 +30,7 @@ PHP                                                                        NEWS
 - Fixed phpinfo() cutoff of variables at \0. (Ilia)
 - Fixed a bug in the filter extension that prevented magic_quotes_gpc from
   being applied when RAW filter is used. (Ilia)
+- Fixed bug #38354 (Unwanted reformatting of XML when using AsXML). (Christian)
 - Fixed bug #38347 (Segmentation fault when using foreach with an unknown/empty 
   SimpleXMLElement). (Tony)
 - Fixed bug #38322 (reading past array in sscanf() leads to arbitary code 
index 7a3a335deb40c13091448477c3a31d0f37bf13a7..b8ff4b593335f78d363b5b40acda190bfa8aaa2a 100644 (file)
@@ -1205,7 +1205,7 @@ SXE_METHOD(asXML)
                                        RETURN_FALSE;
                                }
 
-                               xmlNodeDumpOutput(outbuf, (xmlDocPtr) sxe->document->ptr, node, 0, 1, NULL);
+                               xmlNodeDumpOutput(outbuf, (xmlDocPtr) sxe->document->ptr, node, 0, 0, NULL);
                                xmlOutputBufferClose(outbuf);
                                RETURN_TRUE;
                        }
@@ -1229,7 +1229,7 @@ SXE_METHOD(asXML)
                                RETURN_FALSE;
                        }
 
-                       xmlNodeDumpOutput(outbuf, (xmlDocPtr) sxe->document->ptr, node, 0, 1, ((xmlDocPtr) sxe->document->ptr)->encoding);
+                       xmlNodeDumpOutput(outbuf, (xmlDocPtr) sxe->document->ptr, node, 0, 0, ((xmlDocPtr) sxe->document->ptr)->encoding);
                        xmlOutputBufferFlush(outbuf);
                        strval = xmlStrndup(outbuf->buffer->content, outbuf->buffer->use);
                        strval_len = outbuf->buffer->use;