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

Request #10815 Quick list of packages
Submitted: 2007-04-23 15:40 UTC Modified: 2007-06-30 05:35 UTC
From: c0il Assigned: farell
Status: Closed Package: PEAR_Info (version 1.6.1)
PHP Version: 5.1.6 OS: Win XP
Roadmaps: 1.7.0RC1    
Subscription  


 [2007-04-23 15:40 UTC] c0il (Loïc Vernet)
Description: ------------ Could it be possible to have a new contructor that would allow to retrieve only an array with the packages names and their version, that constructor would be obviously quicker than the standart one, moreover and an additional to return the packages array would be great. require_once 'PEAR/Info.php'; $info = new PEAR_Info($pear_dir, $fastMode); foreach ($info->getPackages() as $package) { echo $package->name. ' - '; echo $package->version. '<br/>'; } Actual result: -------------- Working on the object returned by PEAR_Info() take to much time.

Comments

 [2007-06-29 15:53 UTC] farell (Laurent Laville)
Will be solved with a new option setup system.
 [2007-06-30 03:12 UTC] farell (Laurent Laville)
re-assign to version 1.7.0RC1
 [2007-06-30 05:35 UTC] farell (Laurent Laville)
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. *** Please check the new example pear_info5.php that demonstrate the configuration power.