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

Bug #11347 Invalid tag order when creating new package.xml
Submitted: 2007-06-18 10:00 UTC
From: tias Assigned: shangxiao
Status: Closed Package: PEAR_PackageFileManager_Cli (version 0.2.0)
PHP Version: 4.4.4 OS:
Roadmaps: (Not assigned)    
Subscription  


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 : 24 + 17 = ?

 
 [2007-06-18 10:00 UTC] tias (Tias Guns)
Description: ------------ Hi, When I run pfm in a directory where there is no package.xml yet: I enter all info, then when choosing either `echo package file...` or `save and exit` I get the error: PEAR_PackageFileManager2 Error: Package validation failed: Error: Invalid tag order in <package>, found <dependencies> expected one of "contents" This is because the '$pfm' object is passed by value, and not by reference. Meaning that the result of doing $pfm->generateContents() in a function is lost when you leave that function. The attached patch makes every function that takes $pfm as argument, pass by reference. g,T

Comments

 [2007-06-18 10:27 UTC] shangxiao (David Sanders)
Ah yes thanks for picking that up!
 [2007-06-19 14:14 UTC] shangxiao (David Sanders)
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/PEAR_PackageFileManager_Cli