From: Christian Stocker Date: Sun, 6 Aug 2006 19:39:38 +0000 (+0000) Subject: Fix #38354 (Unwanted reformatting of XML when using AsXML) X-Git-Tag: RELEASE_1_0_0RC1~2071 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92b3f6b90c9cd937d04f00df4b63c27169e0873a;p=php Fix #38354 (Unwanted reformatting of XML when using AsXML) (MFB) --- diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index 2afaa49553..80aa2d6aa1 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -1206,7 +1206,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; } @@ -1230,7 +1230,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;