From 3fb8db4ca8456ecc21955d22c52909397341bc7e Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Wed, 5 Jun 2002 15:24:49 +0000 Subject: [PATCH] - Fix a problem in domxml_dump_mem(_file) with xmlKeepBlanksDefault not being set. (patch by Rob Richards ) --- ext/domxml/php_domxml.c | 5 +++-- 1 file 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); } -- 2.50.1