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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 45 - 16 = ?

 
 [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.