Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87197 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10781 invoked from network); 16 Jul 2015 11:21:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2015 11:21:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.15.18 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.15.18 mout.gmx.net Received: from [212.227.15.18] ([212.227.15.18:58033] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 81/91-32891-3C397A55 for ; Thu, 16 Jul 2015 07:21:40 -0400 Received: from [192.168.0.100] ([95.89.139.132]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0Mbwm6-1ZViRq1RvK-00JFSU; Thu, 16 Jul 2015 13:21:36 +0200 Message-ID: <55A793C8.6070909@gmx.de> Date: Thu, 16 Jul 2015 13:21:44 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Pasindu De Silva CC: Stanislav Malyshev , PHP Internals 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> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:zVnm6/8ft2XWCimD7rRpouTh2vTNyyg8VRVFgcIxH/xm/nHeoJG D1R96LiPd/ivBHiMcCnZljzLTHnMfHdI8tdGwPkAT9U5Vdk4jUSAfQXZwGfaHPlufHrrxHp LuAcMLyf1aSVIQc5P887leUhtNnjg0Z9r345I8EJXHe90QhkHoROTZQkiynewK8X8YpKfIu Fk/jZO27z52yz0IpCYemA== X-UI-Out-Filterresults: notjunk:1;V01:K0:ZLGGw+fcKMw=:ron/esN2TdmuFRr1DcnRWU azfBauumwY4mjj37E+O+JuVcabsqbe91A7xce1kp8jKdtwMSLnzGZPgIVQ4fX9Ifs5G23aGwK yc8JnJ770rkBSNnJJSuO5N3xON2AInhGmyEWEQFfFOu3Lua5BAemT675aEBoVNPQk7THoRpKj oB/QP56zA4sIYptA/nG38mJluNw6NDnfVN7eAha9JNJHTKUpXWw1FBfUGUYzgYoRnnPaeryTB vD7iGFkoDxxwDL4mWjQ2ySzTwqJNOsTRtnojca7ARD3G2Xth8KBIz88hj67Nq6ny7SRMZFYAC bMm0qoNLg9yRa3fKUA0Ug2GdLHGqYOJMFV9u8yEpY4DAZyN8TQ4Jrom59IPBtcaan3+CN99kl oENbtOGon6t5PHNjDdSsjwzzUogCLXhyZqu8Yqk1WXn5DkYuJA6I7awOeY5v525iqEzZ95EiR HC1EGdqkTPHxPGsN+SDDi8PrmLsW2h7APXj6BsZ1D5OCRMnB0PXrVhAc73hbwQNgxXyU4ensC NJz0X1qxQahL7DjyDWVB6ADI5U+zK/sdJug0tiATC/Vs68cBNTMrPdj4xrGV8zksLTHJTd1MT Nr2JlStub7/txDomZToNiNElSJEJLx278x2SMqYmipTfzWq7h8CvUY+g38LarOv7m1ZF0QyM6 dPBKV8trnu4cMx9cimLIAVfLehAwEFNLoKk57saRObKIUtuohRCyJmrUR3QaGfsagWTc= Subject: Re: [PHP-DEV] Re: [RFC] Spaceship operator RFC From: cmbecker69@gmx.de (Christoph Becker) Pasindu De Silva wrote: > 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. I suggest to leave the documentation as it is. It is not wrong, the guarantee to yield negative, positive or zero is usually sufficient, and there is at least one code path using memcmp()[1] that is not guaranteed to return -1, 1 or 0. [1] -- Christoph M. Becker