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

Bug #15887 packagesinfo.xml is not valid xml
Submitted: 2009-02-09 21:26 UTC
From: saltybeagle Assigned: cellog
Status: Closed Package: pearweb
PHP Version: Irrelevant OS:
Roadmaps: 1.22.0    
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 : 26 + 37 = ?

 
 [2009-02-09 21:26 UTC] saltybeagle (Brett Bieber)
Description: ------------ Some packagesinfo.xml files are not valid xml. For example: http://pear.php.net/rest/c/XML/packagesinfo.xml There may be other categories with similar formatting. See the other categories here: http://pear.php.net/rest/c/categories.xml Test script: --------------- Expected result: ---------------- Actual result: --------------

Comments

 [2009-02-10 04:57 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Verified
 [2009-05-17 11:37 UTC] doconnor (Daniel O'Connor)
Ew. It's doing a str_replace on a header to try to cut that out.
 [2009-05-18 13:57 UTC] doconnor (Daniel O'Connor)
Current plan: Do things like: <?php $a = '<?xml version="1.0" encoding="utf-8"?> <a><b></b></a>'; $c = array(); $c[] = '<?xml version="1.0" encoding="utf-8"?> <c></c>'; $c[] = '<?xml version="1.0" encoding="utf-8"?> <c></c>'; $master_document = new DOMDocument(); $master_document->loadXML($a); foreach ($c as $xml) { $another_document = new DOMDocument(); $another_document->loadXML($xml); $node = $master_document->importNode($another_document->documentElement, true); $master_document->documentElement->firstChild->appendChild($node); } print $master_document->saveXML();
 [2009-07-15 00:33 UTC] cellog (Greg Beaver)
-Status: Verified +Status: Closed -Assigned To: +Assigned To: cellog
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/ finally fixed this