From: Derick Rethans Date: Wed, 5 Jun 2002 15:24:49 +0000 (+0000) Subject: - Fix a problem in domxml_dump_mem(_file) with xmlKeepBlanksDefault not X-Git-Tag: RELEASE_0_90~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fb8db4ca8456ecc21955d22c52909397341bc7e;p=php - Fix a problem in domxml_dump_mem(_file) with xmlKeepBlanksDefault not being set. (patch by Rob Richards ) --- 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); }