Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.2

Bug #1232 The standalone attributes turned to 'on'
Submitted: 2004-04-17 13:42 UTC Modified: 2008-08-24 15:26 UTC
From: guillaume dot lecanu at online dot fr Assigned: schst
Status: Closed Package: XML_Beautifier
PHP Version: 4.3.4 OS: Debian Sid
Roadmaps: 1.2.0a1    
Subscription  


 [2004-04-17 13:42 UTC] guillaume dot lecanu at online dot fr
Description: ------------ The standalone attribute of <?xml ?> tag is always change to 'yes'. Reproduce code: --------------- <?php include_once 'XML/Beautifier.php'; $xml = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>' .'<example></example>'; $fmt = new XML_Beautifier(); $out =& $fmt->formatString($xml); print "<br />Original XML : <br />".htmlSpecialChars($xml); print "<br />Formatted XML : <br />".htmlSpecialChars($out); ?> Expected result: ---------------- Original XML : <?xml version="1.0" encoding="UTF-8" standalone="no"?><example></example> Formatted XML : <?xml version="1.0" encoding="UTF-8" standalone="no"?><example></example> Actual result: -------------- Original XML : <?xml version="1.0" encoding="UTF-8" standalone="no"?><example></example> Formatted XML : <?xml version="1.0" encoding="UTF-8" standalone="yes"?><example />

Comments

 [2004-04-18 11:41 UTC] schst
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.