]> 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:39:38 +0000 (19:39 +0000)
committerChristian Stocker <chregu@php.net>
Sun, 6 Aug 2006 19:39:38 +0000 (19:39 +0000)
(MFB)

ext/simplexml/simplexml.c

index 2afaa4955355f740d5a4be8eec2c56446baaf4b5..80aa2d6aa1fd78e8687e1c100cedd0977078136f 100644 (file)
@@ -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;