summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2002-06-05 15:24:49 +0000
committerDerick Rethans <derick@php.net>2002-06-05 15:24:49 +0000
commit3fb8db4ca8456ecc21955d22c52909397341bc7e (patch)
tree2204cbb43dd7092579ffc5a184ca11631ce7c63f
parent3b1d852949d109f915c23d93ba3d0f2e5dd8e90f (diff)
downloadphp-git-3fb8db4ca8456ecc21955d22c52909397341bc7e.tar.gz
- Fix a problem in domxml_dump_mem(_file) with xmlKeepBlanksDefault not
being set. (patch by Rob Richards <rrichards@digarc.com>)
-rw-r--r--ext/domxml/php_domxml.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c
index 063e2fb45e..26fc5c7d23 100644
--- a/ext/domxml/php_domxml.c
+++ b/ext/domxml/php_domxml.c
@@ -3274,7 +3274,7 @@ PHP_FUNCTION(domxml_dump_mem_file)
{
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 @@ PHP_FUNCTION(domxml_dump_mem_file)
xmlSetCompressMode(compressmode);
if (format) {
- xmlKeepBlanksDefault(0);
+ keepblanks = xmlKeepBlanksDefault(0);
bytes = xmlSaveFormatFile(file, docp, format);
+ xmlKeepBlanksDefault(keepblanks);
} else {
bytes = xmlSaveFile(file, docp);
}