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

Bug #13312 Please specify SimpleXML extension dependency
Submitted: 2008-03-05 10:20 UTC
From: shangxiao Assigned: dufuz
Status: Closed Package: PEAR_PackageFileManager (version 1.6.3)
PHP Version: 5.2.4 OS: Gentoo Linux
Roadmaps: 1.7.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 : 33 - 20 = ?

 
 [2008-03-05 10:20 UTC] shangxiao (David Sanders)
Description: ------------ In the package.xml there needs to be a dependency specification for the extension SimpleXML. Running this package with simple PHP builds with SimpleXML disabled causes errors when attempting to run PEAR_PackageFileManager_Cli. Please see: http://pear.php.net/bugs/bug.php?id=13098 http://bugs.gentoo.org/show_bug.cgi?id=209515 Test script: --------------- Run pfm (PEAR_PackageFileManager_Cli) in a pear package using svn on Gentoo where PHP has SimpleXML disabled. Expected result: ---------------- No errors Actual result: -------------- At the end (after entering "maintainer #1's email", but before the summary is printed), the following error message gets printed: PEAR_PackageFileManager_SVN Error: simplexml extension is required in PHP 5+. PHP 4 uses XML_Tree

Comments

 [2008-03-22 00:46 UTC] dufuz (Helgi Þormar Þorbjörnsson)
According to Greg we can't do a : If PHP 4 depend on X but if PHP 5 depend on Y Silly I know but I'm not sure what to do then, I'll find a bit more decent solution then the die but we'll never find the ideal solution we both crave.
 [2008-03-23 21:22 UTC] dufuz (Helgi Þormar Þorbjörnsson)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. I made XML_Serializer as a required dep and simplexml as a optional one, XML_Serializer works fine on PHP 5 but just as good to use simplexml if it's available.