#21611 [Opn]: Problem with pear cli and release numbers

From: Date: Thu, 31 Jul 2003 20:19:08 +0000
Subject: #21611 [Opn]: Problem with pear cli and release numbers
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-19079@lists.php.net to get a copy of this message
ID: 21611 Updated by: cellog@php.net Reported By: jan at horde dot org Status: Open Bug Type: PEAR related Operating System: Linux PHP Version: 4CVS-2003-01-13 (stable) Assigned To: gschlossnagle New Comment: Um, PHP version 5.0.0b1 is a PHP version with a suffix. I'd call this a valid bug, especially because this can be fixed by using strnatcasecmp() instead of version_compare(). Perhaps this is a bug in version_compare(), and should be noted as such? Greg Previous Comments: ------------------------------------------------------------------------ [2003-07-31 14:50:16] nicos@php.net Yes many developers have this problem because of lack of documentation. Opening back as a documentation problem (even if we don't have this category for PEAR and btw we should have more categories for PEAR). Can anyone write a little <para> on this? ------------------------------------------------------------------------ [2003-07-31 14:16:24] meebey@php.net this should be then at least noted in the PEAR developer documenation... My package is not the first one with this problem.... (and using p1 as suffix is pretty standard for software versions) so that note is needed. ------------------------------------------------------------------------ [2003-07-31 03:44:24] nicos@php.net PEAR is using STANDARD PHP versions. And a PHP version can't have a suffix. Fix your versions name. Note: PEAR is using version_compare() to compare the versions. See: http://php.net/version_compare ------------------------------------------------------------------------ [2003-07-24 02:42:04] meebey@php.net this problem still exists, I just reproduced it with my current SmartIRC release Net_SmartIRC-0.5.5p1 it's installed and when I do pear list-upgrades: meebey-mobile:/db/mysql/mysql# pear list-upgrades Available Upgrades (stable): ============================ Package Version Size Net_SmartIRC 0.5.5 183kB it shows me the older unpatched 0.5.5 version. So of course pear upgrade-all tries to upgrade and I get: meebey-mobile:/db/mysql/mysql# pear upgrade-all Release Warnings ================ w w downloading Net_SmartIRC-0.5.5p1.tgz ... ...done: 186,781 bytes upgrade to a newer version (0.5.5p1 is not newer than 0.5.5p1) I think the pear cli should check if the version has a suffix, if so, then it's newer then just the versionnumber... ------------------------------------------------------------------------ [2003-04-28 04:02:57] arnaud@php.net Assigning to georges ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/21611 -- Edit this bug report at http://bugs.php.net/?id=21611&edit=1

« previous php.pear.dev (#19079) next »