#23726 [Opn->Bgs]: dump_file formatting option appears to be broken
| From: | rrichards@php.net | Date: | Mon, 26 May 2003 11:16:55 +0000 |
| Subject: | #23726 [Opn->Bgs]: dump_file formatting option appears to be broken | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-40439@lists.php.net to get a copy of this message | ||
ID: 23726
Updated by: rrichards@php.net
Reported By: bharris at spro dot net
-Status: Open
+Status: Bogus
Bug Type: DOM XML related
Operating System: Red Hat 8.0 (x86)
PHP Version: 4.3.2RC2
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
This behavior is from libxml and is based upon the structure of the
tree you are trying to output. The undocumented feature of passing in a
value other than 0 or 1 as the format paramter causes libxml to ignore
its rules and format everything, though it possibly may produce an
error.
Previous Comments:
------------------------------------------------------------------------
[2003-05-20 18:19:40] bharris at spro dot net
Using 4.3.2RC2 dump_file such as:
$filesize = $dom->dump_file($filename, false, true);
OR
$filesize = $dom->dump_file($filename, 0, 1);
Does not nicely format the ouput but places it without whitespace.
However (peculiar) using
$filesize = $dom->dump_file($filename, false, 2);
DOES nicely format the output (however, it places additional spaces in
already nicely formatted content)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23726&edit=1