Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102522 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16530 invoked from network); 28 Jun 2018 22:38:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jun 2018 22:38:13 -0000 Authentication-Results: pb1.pair.com header.from=rtheunissen@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rudolf.theunissen@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.196 as permitted sender) X-PHP-List-Original-Sender: rudolf.theunissen@gmail.com X-Host-Fingerprint: 209.85.217.196 mail-ua0-f196.google.com Received: from [209.85.217.196] ([209.85.217.196:46703] helo=mail-ua0-f196.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6B/5E-01794-253653B5 for ; Thu, 28 Jun 2018 18:38:12 -0400 Received: by mail-ua0-f196.google.com with SMTP id r18-v6so4587487ual.13 for ; Thu, 28 Jun 2018 15:38:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=3DPkfi4RgsDSOa0SCsN4Ky2A2N24THCzebKanwEKmUM=; b=HYwcegKUxEh0gkHIEp26g1WUzg9ULKGDaxYOBL8ZuPrGcR5RQ6FwlCw+XLnOehpe+L m1QrnyFfG9C8hr7XxtsHNsVyOPq3p2IQb9CX4VlTeTO5Dlu8b9y0gF0IoDNjUZoX4Kdy N6dRNtgw1BQd1ujiToO6zrfn0o/p6Ds2bp2xoY752L30xhrcLWF5W2U4KD5NWIUKd15p +P7uU3W2p8v0CsnFHCdKZktBqg43XDgVgN3u3jenLMl4nJLoolvdyJGJNQJluII4gfGJ Jm1iyYqlFIYU3siZO3UPu2jAAs5XG7ek3xM2k0m7GuRfO8dj/9FQWYWEyjgATDG3GolW YPbA== X-Gm-Message-State: APt69E3iM/wvEMbcebQ9wslvwAO/XMFp4JTMCI+ojakgwL6hbHu684t8 RWue90cxvnL1FpB2ijnCKaLd4nJu X-Google-Smtp-Source: AAOMgpe2vidiH41BYX0oolloteT0t6jGsBUF3T87MH0Y0n0HfHQO5COKSbvLDltutckJ9Jz85eehwg== X-Received: by 2002:ab0:4045:: with SMTP id h63-v6mr7892065uad.66.1530225488119; Thu, 28 Jun 2018 15:38:08 -0700 (PDT) Received: from mail-vk0-f41.google.com (mail-vk0-f41.google.com. [209.85.213.41]) by smtp.gmail.com with ESMTPSA id j9-v6sm2233288uaf.24.2018.06.28.15.38.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 15:38:07 -0700 (PDT) Received: by mail-vk0-f41.google.com with SMTP id x4-v6so4248350vkx.11 for ; Thu, 28 Jun 2018 15:38:07 -0700 (PDT) X-Received: by 2002:a1f:b593:: with SMTP id e141-v6mr7945912vkf.171.1530225487606; Thu, 28 Jun 2018 15:38:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 28 Jun 2018 18:37:56 -0400 X-Gmail-Original-Message-ID: Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary="0000000000009d7c99056fbb6266" Subject: Re: [PHP-DEV] Equality and relative ordering of objects From: rtheunissen@php.net (Rudi Theunissen) --0000000000009d7c99056fbb6266 Content-Type: text/plain; charset="UTF-8" This discussion has moved to the RFC thread here: https://externals.io/message/102473 On Mon, 25 Jun 2018 at 07:56, Rudi Theunissen wrote: > The part I found difficult was in the handlers - we only have `compare`, > no equals. > The only way we can have the handler differentiate between equality and > ordering > is if we pass a parameter to the handler, which means we'd have to change > the header. > > From: > > `typedef int (*zend_object_compare_zvals_t)(zval *result, zval *op1, zval > *op2);` > > To: > > `typedef int (*zend_object_compare_zvals_t)(zval *result, zval *op1, zval > *op2, int mode);` > > Or we could introduce a new handler? Not sure if that's something we can > do easily. > --0000000000009d7c99056fbb6266--