summaryrefslogtreecommitdiff
path: root/ext/simplexml
diff options
context:
space:
mode:
authorChristian Stocker <chregu@php.net>2006-08-06 19:38:45 +0000
committerChristian Stocker <chregu@php.net>2006-08-06 19:38:45 +0000
commit42982ac3a1c3af8499bb69657985bd7dbc957384 (patch)
treece768c65eba77c8162ba27766c4cce9ddedb5101 /ext/simplexml
parent07b5c8fe2a5f3a3714641c543a9d9e12799ac1bb (diff)
downloadphp-git-42982ac3a1c3af8499bb69657985bd7dbc957384.tar.gz
Fix #38354 (Unwanted reformatting of XML when using AsXML)
Diffstat (limited to 'ext/simplexml')
-rw-r--r--ext/simplexml/simplexml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index 7a3a335deb..b8ff4b5933 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -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;