Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61624 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51246 invoked from network); 22 Jul 2012 02:08:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jul 2012 02:08:53 -0000 Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.42 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.216.42 mail-qa0-f42.google.com Received: from [209.85.216.42] ([209.85.216.42:61853] helo=mail-qa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F0/84-14918-5B06B005 for ; Sat, 21 Jul 2012 22:08:53 -0400 Received: by qafi31 with SMTP id i31so773801qaf.8 for ; Sat, 21 Jul 2012 19:08:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=LBcLfnvlPLHh2PovDainY+syCdyAx3/jl9xLjDjciMY=; b=H9G21zPoHN/ynyzA7u4zLP98rbdRZQks0uxrH08b8KSX1eISy8VvsGxvQNtCOBgSMI Zlj1s/nf1KOSgjotMkiUMR/Ar1LFjP+BTvErNZhu20jAgqTxjSQ45BRaTq/NU016WA0L gpl60OJ7bOM3mJ3bKwASnApKRioMWT42JqIfiNzRKdtiOKHyUOlH/vvbDAUf+uHsqPTc MzIkTkmU2404gkUPPe+QT9lPR8fHn0AK8VRFlXX1m5EYRSOAcjE/z8qV1vhuMZ9EN40m Ip1LVtmoFmm7MyjV+7SoBSisk2M2RLGfidwzzgAmtwE34scReQioXTdCsAInxRh0sY9X XYng== MIME-Version: 1.0 Received: by 10.224.180.146 with SMTP id bu18mr17918102qab.10.1342922930244; Sat, 21 Jul 2012 19:08:50 -0700 (PDT) Received: by 10.229.85.204 with HTTP; Sat, 21 Jul 2012 19:08:50 -0700 (PDT) In-Reply-To: References: <5009C8AA.10603@sugarcrm.com> Date: Sat, 21 Jul 2012 19:08:50 -0700 Message-ID: To: Andrew Faulds Cc: Tjerk Meesters , "internals@lists.php.net" , Rasmus Schultz Content-Type: multipart/alternative; boundary=485b397dcfcd37cb7204c5619c4d Subject: Re: [PHP-DEV] common issue with version_compare() From: kris.craig@gmail.com (Kris Craig) --485b397dcfcd37cb7204c5619c4d Content-Type: text/plain; charset=ISO-8859-1 On Sat, Jul 21, 2012 at 3:09 AM, Andrew Faulds wrote: > If you think 1.1 =/= 1.01 you're sure using some weird version numbers. > Only 1.0.1 would be smaller. > > Has anyone seen these weird version ordering schemes in practise? On any > major projects of note? > > *raises his hand* 1.01 and 1.0.1 are essentially the same thing. If a versioning model doesn't utilize the second dot (many don't), then 1.01 would be the same as 1.0.1 in a project that does use it. The Gitflow model reserves that last digit for hotfixes. However, many developers (including myself) drop the second dot as it's pretty much superfluous. Maybe that's an American thing, I dunno. But having 1.1 == 1.01 would cause this function to be completely and utterly *worthless *for many developers like myself. --Kris --485b397dcfcd37cb7204c5619c4d--