Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61618 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5457 invoked from network); 21 Jul 2012 12:11:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jul 2012 12:11:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajfweb@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajfweb@googlemail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: ajfweb@googlemail.com X-Host-Fingerprint: 74.125.82.54 mail-wg0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:43824] helo=mail-wg0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B4/62-27309-76C9A005 for ; Sat, 21 Jul 2012 08:11:19 -0400 Received: by wgx1 with SMTP id 1so3460816wgx.11 for ; Sat, 21 Jul 2012 05:11:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+/hPMMtYr+ztcb8MXHA+hqyNTHQaa59XAx0bbMwo1as=; b=kYWbseZBBfol65xcJ+taLtSNHfoOD+QqpL2K0aptx3Qf0OFMDmLrCbyj6bme7frobX sErQt9yov6LqecXGI19xJGGgPAaw+Cb3ir6lDTYSwXA8tQqu5RMh2Mh5xvGLEvrWGnJq lSAXoTM6FYoh290NlCH598bAhefnr0u0w+rnulHTbhI2dvk9cO+iIVgw09mtMKgQ66Cc x+jeepYN2NfdZ1tP/mfXHhqP5KJWHkP9KK/1lMKfxv7y4MaZBDFaJgQQjvjLqymzwzv/ dXU3+DIzxxOlNWDcc0CMgJ96FNjfXMQDnSj4axo9+GpGnk6TZ0dB+h3sidbKbIuUS//H 1RCQ== MIME-Version: 1.0 Received: by 10.216.220.89 with SMTP id n67mr5943606wep.73.1342872676261; Sat, 21 Jul 2012 05:11:16 -0700 (PDT) Received: by 10.216.160.16 with HTTP; Sat, 21 Jul 2012 05:11:16 -0700 (PDT) Received: by 10.216.160.16 with HTTP; Sat, 21 Jul 2012 05:11:16 -0700 (PDT) In-Reply-To: <500A9B8A.1060303@gmail.com> References: <500A9B8A.1060303@gmail.com> Date: Sat, 21 Jul 2012 13:11:16 +0100 Message-ID: To: =?UTF-8?B?w4FuZ2VsIEdvbnrDoWxleg==?= Cc: internals@lists.php.net, Pierre Joye , Rasmus Schultz Content-Type: multipart/alternative; boundary=0016e6d77ce3d8e14904c555e838 Subject: Re: [PHP-DEV] common issue with version_compare() From: ajfweb@googlemail.com (Andrew Faulds) --0016e6d77ce3d8e14904c555e838 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Maybe it should have an optional extra parameter specifying comparison "mode"? (I.e. version formatting) On Jul 21, 2012 1:08 PM, "=C3=81ngel Gonz=C3=A1lez" wro= te: > On 21/07/12 11:32, Pierre Joye wrote: > > hi, > > > > No, I mean version with 1.0 and not 1.0.0 are not. They are just not > > correct and confusing, as you noticed. > Then Linux 2.6.39 shouldn't have been followed by Linux 3.0 > > For me, 1.0 and 1.0.0 are the same thing. > > It's fine if x.y is not a valid "PHP-standardized" version number, > and version_compare is thus undefined for it (despite lack of > definition of what forms a "PHP-standardized" version number). > But forcing third-parties to change their release numbers just to > please version_compare() is non-sense. > And if versoin_compare behavior is undefined for them, it can > (theoretically) be harmlessly changed. > > > --0016e6d77ce3d8e14904c555e838--