Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61617 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4092 invoked from network); 21 Jul 2012 12:08:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jul 2012 12:08:12 -0000 Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.170 as permitted sender) X-PHP-List-Original-Sender: keisial@gmail.com X-Host-Fingerprint: 209.85.212.170 mail-wi0-f170.google.com Received: from [209.85.212.170] ([209.85.212.170:51289] helo=mail-wi0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/12-27309-AAB9A005 for ; Sat, 21 Jul 2012 08:08:11 -0400 Received: by wibhq12 with SMTP id hq12so1149695wib.5 for ; Sat, 21 Jul 2012 05:08:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=OaTR64/g6bTSwTz+bN2S4lfE41dRYeXF/isdt1gyzSg=; b=ZW2/TxWH/K3P98T40qjFWakt9hB0AOrjseYIfVcNzygscmQN7oirJCPByFCW4S6qfo BdAL7hQHabiblAl7TpPIymPHcUFYannIK9+ooZzD6ojkymJY8e+UQj/uKPhv/v6UgySq IOSoydwIkoDSA1QuH3ABaGZ2kX4nMN9SkCPItz08GPtpKbSawKhYAnsvRONSkUaMwevo DjKELOl4a9IwS4km9aOY/126qXAXdE8OffGxAHIMjAtLopRUGG75PIZYq0A1pj7hYl54 dbbe64JgEudMt8kiTGvpf7LWS2LeXBhNM4kzR1ylqm1X3Qi0nxxpnR1AAj+FdeagG9VZ 6yeA== Received: by 10.216.53.193 with SMTP id g43mr5100493wec.67.1342872487961; Sat, 21 Jul 2012 05:08:07 -0700 (PDT) Received: from [192.168.1.26] (21.Red-83-32-9.dynamicIP.rima-tde.net. [83.32.9.21]) by mx.google.com with ESMTPS id j6sm5863713wiy.4.2012.07.21.05.08.05 (version=SSLv3 cipher=OTHER); Sat, 21 Jul 2012 05:08:06 -0700 (PDT) Message-ID: <500A9B8A.1060303@gmail.com> Date: Sat, 21 Jul 2012 14:07:38 +0200 User-Agent: Thunderbird MIME-Version: 1.0 To: Pierre Joye CC: Andrew Faulds , internals@lists.php.net, Rasmus Schultz References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] common issue with version_compare() From: keisial@gmail.com (=?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?=) 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.