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  
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-04-06 14:00 UTC
Package:
Bug Type:
Summary:
From: neta-master at ywcafe dot net
New email:
PHP Version: Package Version: OS:

 

 [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