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 09:24 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  
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 : 32 - 23 = ?

 
 [2006-06-14 09: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