Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87092 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73842 invoked from network); 9 Jul 2015 18:35:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jul 2015 18:35:10 -0000 Authentication-Results: pb1.pair.com header.from=ppasindud@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ppasindud@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.173 as permitted sender) X-PHP-List-Original-Sender: ppasindud@gmail.com X-Host-Fingerprint: 209.85.223.173 mail-ie0-f173.google.com Received: from [209.85.223.173] ([209.85.223.173:35177] helo=mail-ie0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/14-22102-BDEBE955 for ; Thu, 09 Jul 2015 14:35:08 -0400 Received: by iecuq6 with SMTP id uq6so182359124iec.2 for ; Thu, 09 Jul 2015 11:35:04 -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=7bwqDQZgWiwFwc86lVA5mc0iLlWSX5fjeOeYwqOlQ7E=; b=HcRWVugGXJn91BZt5BrGlbL9VzyPZJyqpXMH9IeiAo+UrTLPPsbflSeFwohuHzlbuW zxb13/OT3fAbLi+nhatEwE32kjsABAoiWH0VRlZk/75wje6nU8qEHmbHBf1XGYs/shZq /3ZkF1cg8AXJ9206IdpMv2q+sc50TPKdSpWsKk0cMF1LW48M9CFIdRRBk1NK9ZEC0ndX Prrp5W+xDCOD0h2qbhIJ2XSUPK8mTyorr+pLLCvwYYJi60jvIadn9OnPBNzfVF84Y12+ HMWjSPeIVqfqjtPIfjmdEg6P4SvS84jyOQfO80XPySBdlmTa9wREtrBjPz8ZZ5ia8fo4 tryQ== MIME-Version: 1.0 X-Received: by 10.107.17.13 with SMTP id z13mr1128642ioi.97.1436466903586; Thu, 09 Jul 2015 11:35:03 -0700 (PDT) Received: by 10.36.3.75 with HTTP; Thu, 9 Jul 2015 11:35:03 -0700 (PDT) In-Reply-To: <55416961.30200@gmx.de> References: <54E35490.9040709@gmail.com> <5533A275.7050303@gmx.de> <55342724.6020606@gmail.com> <55342C8D.7020509@gmx.de> <55343F3E.3010307@gmail.com> <55350298.1000303@gmx.de> <554166FC.1060405@gmail.com> <55416961.30200@gmx.de> Date: Fri, 10 Jul 2015 02:35:03 +0800 Message-ID: To: Christoph Becker Cc: Stanislav Malyshev , PHP Internals Content-Type: multipart/alternative; boundary=001a113ecf32851dc3051a7583d4 Subject: Re: [PHP-DEV] Re: [RFC] Spaceship operator RFC From: ppasindud@gmail.com (Pasindu De Silva) --001a113ecf32851dc3051a7583d4 Content-Type: text/plain; charset=UTF-8 Hi Guys Something changed between alpha 1 and 2. echo [1, 2, 3] <=> []; // gives the expected result 1 and not 3 http://3v4l.org/5qFS9 Guess the documentation should be changed back. On Thu, Apr 30, 2015 at 7:29 AM, Christoph Becker wrote: > Stanislav Malyshev wrote: > > > Yeah compare_function can actually return more than 1, 0 and -1, esp. > > for arrays but maybe . I'm not sure if we should change this or not. It > > should be pretty easy to fix, just not sure why it's this way now - see > > zend_compare_arrays and down to zend_hash_compare. > > FWIW: the documentation has already been adjusted by Peter (salathe): > > > > > -- > Christoph M. Becker > -- *Pasindu De Silva**ppasindud@gmail.com * --001a113ecf32851dc3051a7583d4--