Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18690 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23783 invoked by uid 1010); 6 Sep 2005 13:20:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 23767 invoked from network); 6 Sep 2005 13:20:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Sep 2005 13:20:44 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:40845] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 0C/0F-33268-AA79D134 for ; Tue, 06 Sep 2005 09:20:43 -0400 Received: (qmail 10844 invoked from network); 6 Sep 2005 13:20:39 -0000 Received: from localhost (HELO zeev-notebook.zend.com) (127.0.0.1) by localhost with SMTP; 6 Sep 2005 13:20:39 -0000 Message-ID: <5.1.0.14.2.20050906161939.07d6d5b0@localhost> X-Sender: zeev@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 06 Sep 2005 16:20:38 +0300 To: Derick Rethans Cc: Greg Beaver ,internals@lists.php.net In-Reply-To: References: <49.1D.33268.2A19C134@pb1.pair.com> <49.1D.33268.2A19C134@pb1.pair.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] version_compare() logic issue - can we work around this? From: zeev@zend.com (Zeev Suraski) At 22:21 05/09/2005, Derick Rethans wrote: >On Mon, 5 Sep 2005, Greg Beaver wrote: > > > Hi, > > > > version_compare('5.1.0-dev', '5.1.0b3') > > > > always claims 5.1.0-dev is older. This has been causing intermittent > > problems with testing PEAR and other packages with the latest CVS of > > PHP. Could we change the version of PHP in development to something > > version_compare can work with like 5.1.0RC2-dev even if it ends up being > > 5.1.0b4, 5.1.0 stable or anything else? > >It was always custom to do this: > >5.1.0-dev >5.1.0b1 >5.1.0b2-dev >5.1.0b2 >5.1.0RC1-dev >5.1.0RC1 >5.1.0RC2-dev >... > >5.1.0 > >But for some reason the current RMs don't do that anymore. I beg to differ and say that it wasn't always custom. Not that I care, I don't have any problem with switching to it. Zeev