Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85872 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 826 invoked from network); 19 Apr 2015 22:07:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Apr 2015 22:07:41 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.179 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.179 mail-pd0-f179.google.com Received: from [209.85.192.179] ([209.85.192.179:33661] helo=mail-pd0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/10-34018-C2724355 for ; Sun, 19 Apr 2015 18:07:41 -0400 Received: by pdbnk13 with SMTP id nk13so188047044pdb.0 for ; Sun, 19 Apr 2015 15:07:38 -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:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=qaEp/jpndhiirxCPi3JFJwW1kG7DD7LkUpA266qsWZc=; b=rowCkOaHZ1JLgDAu8IQ5ntF/YtMeVi5k9gkxmSpD8iypFXTQf2toPfH0pUlToR4/ri t2zHH2Y+35etGjav5FrBWfnLR31072yDMg5GHL7zip5BD3Vjhfhpi0uECe7IMZlaFh8K R8XiIRDnlhK4wWOp8wYc615rQ2nVosMGVV6n6ERGMDIktNuqBgrnnMr8dzYQTb/4lwz9 ZC6EsqTuGYNYASGYtrfqhi3emGYMY4P763qn0gOH/z7g36LOlVrGv9H52Tj2mXD+jcaH 6Y8UKH/jqv63/xiGpCmzmhAzXZWZNaTaUyiep8B/VogZma+aR6jCmS/PgsfKzxlB5G3y Dsaw== X-Received: by 10.70.138.38 with SMTP id qn6mr22633751pdb.119.1429481257891; Sun, 19 Apr 2015 15:07:37 -0700 (PDT) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id nt15sm16137397pdb.14.2015.04.19.15.07.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Apr 2015 15:07:37 -0700 (PDT) Message-ID: <55342724.6020606@gmail.com> Date: Sun, 19 Apr 2015 15:07:32 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Christoph Becker , PHP Internals References: <54E35490.9040709@gmail.com> <5533A275.7050303@gmx.de> In-Reply-To: <5533A275.7050303@gmx.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [RFC] Spaceship operator RFC From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > A discrepancy between the actual behavior of the spaceship operator and > an example given in its RFC has been reported recently (bug #69466[1]). I'm not sure what the discrepancy is, could you explain? > To me it appears that there is a contradiction in the RFC (see my > comment on the respective report), which would have to be resolved one > way or another. I don't see the contradiction. The objects in your example are not comparable, since $a < $b and $b < $a are both not true, 1 is returned. Returning 0 would be wrong of course since these objects are not equal. In fact, there's no "right" value in this case as objects are not comparable - so the result is undefined. In this case, undefined is 1. -- Stas Malyshev smalyshev@gmail.com