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

Bug #20507 pear list-upgrades does not take PHP version into account
Submitted: 2015-02-26 18:46 UTC
From: cweiske Assigned: cweiske
Status: Closed Package: PEAR (version 1.9.5)
PHP Version: Irrelevant OS:
Roadmaps: 1.10.0    
Subscription  


 [2015-02-26 18:46 UTC] cweiske (Christian Weiske)
Description: ------------ When using PHP 5.3.x and doing "pear list-upgrades", Console_Getopt 1.4.0 is shown - despite it being PHP 5.4+ only. We can't fix that technically because the REST files do not contain PHP version information: - http://pear.php.net/rest/r/console_getopt/allreleases.xml - http://pear.php.net/rest/r/console_getopt/1.4.0.xml So the REST data have to be extendetd as well to fix this.

Comments

 [2015-03-05 16:23 UTC] cweiske (Christian Weiske)
-Roadmap Versions: +Roadmap Versions: 1.10.0
 [2015-09-07 15:44 UTC] cweiske (Christian Weiske)
-Roadmap Versions: 1.10.0 +Roadmap Versions:
 [2015-09-23 12:40 UTC] cweiske (Christian Weiske)
Actually, allreleases2.xml contains PHP version information - the minimum version: http://pear.php.net/rest/r/console_getopt/allreleases2.xml So this can be fixed in PEAR itself without changing REST info, except we also want the max version in there.
 [2015-09-23 16:00 UTC] cweiske (Christian Weiske)
I just looked into the pear code If the channel supports REST 1.3, then the PHP version being taken into account when doing "pear install foo" - PEAR/REST/13.php#getDownloadURL Thus this bug here should be about the "list-upgrades" command only.
 [2015-09-24 01:09 UTC] cweiske (Christian Weiske)
About the REST 1.4 code that PEAR contains but is not supported anywhere: It was an idea to make list-upgrades faster by introducing a file latestpackages.xml - http://markmail.org/thread/dziocfdzm32i473i -- http://grokbase.com/t/php/pear-dev/073tnqfk7n/rest-making-list-upgrades-faster - https://wiki.php.net/pear/pear2/pyrus/roadmap#alpha_4_-_api_work_speed PEAR has the code already, but no channel server supports it. Patch for pearweb: - http://pastebin.com/5VL95ze7 -- http://pastie.org/pastes/527988/text
 [2015-09-24 01:25 UTC] cweiske (Christian Weiske)
-Roadmap Versions: +Roadmap Versions: 1.10.0
 [2015-09-24 02:19 UTC] cweiske (Christian Weiske)
-Status: Open +Status: Closed -Assigned To: +Assigned To: cweiske
Fixed in git stable branch. Will be in 1.10.0.