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 18:42 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  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2008-08-24 20:26 UTC
Package:
Bug Type:
Summary:
From: guillaume dot lecanu at online dot fr
New email:
PHP Version: Package Version: OS:

 

 [2004-04-17 18: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 16: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.