cvs: php-src /ext/simplexml simplexml.c
| From: | Christian Stocker | Date: | Sun, 06 Aug 2006 19:39:38 +0000 |
| Subject: | cvs: php-src /ext/simplexml simplexml.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-39790@lists.php.net to get a copy of this message | ||
chregu Sun Aug 6 19:39:38 2006 UTC
Modified files:
/php-src/ext/simplexml simplexml.c
Log:
Fix #38354 (Unwanted reformatting of XML when using AsXML)
(MFB)
http://cvs.php.net/viewvc.cgi/php-src/ext/simplexml/simplexml.c?r1=1.212&r2=1.213&diff_format=u
Index: php-src/ext/simplexml/simplexml.c
diff -u php-src/ext/simplexml/simplexml.c:1.212 php-src/ext/simplexml/simplexml.c:1.213
--- php-src/ext/simplexml/simplexml.c:1.212 Sun Aug 6 17:41:39 2006
+++ php-src/ext/simplexml/simplexml.c Sun Aug 6 19:39:38 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: simplexml.c,v 1.212 2006/08/06 17:41:39 tony2001 Exp $ */
+/* $Id: simplexml.c,v 1.213 2006/08/06 19:39:38 chregu Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1206,7 +1206,7 @@
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 @@
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;
@@ -2268,7 +2268,7 @@
{
php_info_print_table_start();
php_info_print_table_header(2, "Simplexml support", "enabled");
- php_info_print_table_row(2, "Revision", "$Revision: 1.212 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.213 $");
php_info_print_table_row(2, "Schema support",
#ifdef LIBXML_SCHEMAS_ENABLED
"enabled");