cvs: php4 /ext/domxml php_domxml.c
| From: | Derick Rethans | Date: | Wed, 05 Jun 2002 15:24:49 +0000 |
| Subject: | cvs: php4 /ext/domxml php_domxml.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12234@lists.php.net to get a copy of this message | ||
derick Wed Jun 5 11:24:49 2002 EDT
Modified files:
/php4/ext/domxml php_domxml.c
Log:
- Fix a problem in domxml_dump_mem(_file) with xmlKeepBlanksDefault not
being set. (patch by Rob Richards <rrichards@digarc.com>)
Index: php4/ext/domxml/php_domxml.c
diff -u php4/ext/domxml/php_domxml.c:1.163 php4/ext/domxml/php_domxml.c:1.164
--- php4/ext/domxml/php_domxml.c:1.163 Tue Jun 4 10:30:12 2002
+++ php4/ext/domxml/php_domxml.c Wed Jun 5 11:24:49 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_domxml.c,v 1.163 2002/06/04 14:30:12 jtate Exp $ */
+/* $Id: php_domxml.c,v 1.164 2002/06/05 15:24:49 derick Exp $ */
/* TODO
* - Support Notation Nodes
@@ -3274,7 +3274,7 @@
{
zval *id;
xmlDoc *docp;
- int file_len, bytes;
+ int file_len, bytes, keepblanks;
int format = 0;
int compressmode = 0;
char *file;
@@ -3284,8 +3284,9 @@
xmlSetCompressMode(compressmode);
if (format) {
- xmlKeepBlanksDefault(0);
+ keepblanks = xmlKeepBlanksDefault(0);
bytes = xmlSaveFormatFile(file, docp, format);
+ xmlKeepBlanksDefault(keepblanks);
} else {
bytes = xmlSaveFile(file, docp);
}