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

Bug #7897 can't create cdata
Submitted: 2006-06-14 04:24 UTC Modified: 2008-04-06 09:00 UTC
From: neta-master at ywcafe dot net Assigned:
Status: Verified Package: XML_FastCreate (version 1.0.3)
PHP Version: 4.4.2 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2006-06-14 04:24 UTC] neta-master at ywcafe dot net (watanabe)
Description: ------------ cdata method cant create correct cdata. Test script: --------------- <?php require_once 'XML/FastCreate.php'; $x =& XML_FastCreate::factory('Text'); $x->root( $x->cdata("foo<h1>bar</h1>foo") ); $x->toXML(); ?> Expected result: ---------------- <?xml version="1.0" encoding="UTF-8" standalone="no" ?> <root><![CDATA[ foo<h1>bar</h1>foo ]]></root> Actual result: -------------- <?xml version="1.0" encoding="UTF-8" standalone="no" ?> <root>/*<![CDATA[*/ foo<h1>bar</h1>foo /*]]>*/</root>

Comments