#27783 [NEW]: DomDocument::formatOutput = true doesn' work with loaded files.

From: Date: Tue, 30 Mar 2004 20:37:31 +0000
Subject: #27783 [NEW]: DomDocument::formatOutput = true doesn' work with loaded files.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57156@lists.php.net to get a copy of this message
From: manuel dot hesse at xplib dot de Operating system: linux fedora core 1 PHP version: 5.0.0RC1 PHP Bug Type: DOM XML related Bug description: DomDocument::formatOutput = true doesn' work with loaded files. Description: ------------ The formatOutput feature doesn' t work with documents, that use DomDocument::load() for creation. But it works with in memory DOM Documents. Reproduce code: --------------- $dom = new DomDocument(); $file = "/path/to/file/dom.xml"; if (file_exists($file)) { $dom->load($file); } else { $dom->appendChild(dom->createElement('foobar')); } printf("<pre>%s</pre>", htmlentities($dom->saveXML())); -- Edit bug report at http://bugs.php.net/?id=27783&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27783&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27783&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27783&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27783&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27783&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27783&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27783&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27783&r=support Expected behavior: http://bugs.php.net/fix.php?id=27783&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27783&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27783&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27783&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27783&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27783&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27783&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27783&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27783&r=float

« previous php.bugs (#57156) next »