From 92b3f6b90c9cd937d04f00df4b63c27169e0873a Mon Sep 17 00:00:00 2001 From: Christian Stocker Date: Sun, 6 Aug 2006 19:39:38 +0000 Subject: [PATCH] Fix #38354 (Unwanted reformatting of XML when using AsXML) (MFB) --- ext/simplexml/simplexml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.50.1