Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63796 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83983 invoked from network); 9 Nov 2012 21:01:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Nov 2012 21:01:38 -0000 Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-ia0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:44263] helo=mail-ia0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F4/02-60301-03F6D905 for ; Fri, 09 Nov 2012 16:01:37 -0500 Received: by mail-ia0-f170.google.com with SMTP id e16so3482855iaa.29 for ; Fri, 09 Nov 2012 13:01:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=CFDnXCL8C0pRNxU9LENK2bdNDr8jdtqEfr3Z26RGLe8=; b=GOvUTjjVQd0pK6j+k146Dff7K29mS6Vwcf9eTHy0iah0xL9VjpqDlxXdlvIJIqHY++ 0PKcJkb6WbVyd86/lQYzY5ovX+Or8M8UoIXe2PqDLESoBUMDDbvCIok1MfxbdZs4HuXi vScQ0P9EZv9k5N9WZ9T9vSzaO3HxoXJ5fntoD2ehSn7elbgUQ+U8Vt2Imp/bYip1AX/z 6xMYESke/fXPJNe41333val0EeWCn4KdVBQ9jrHd1xtybNNw/0m2VI9/6r/m8cO2B9Mj ZnHXqmlaNCZ4ZF20KOJwktQNF9oYSpWZQX2+AhwoERnbbUZKjpCGKEUtyo8xeWCvtft4 eluQ== Received: by 10.50.17.170 with SMTP id p10mr2591624igd.5.1352494894514; Fri, 09 Nov 2012 13:01:34 -0800 (PST) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.64.140.106 with HTTP; Fri, 9 Nov 2012 13:00:54 -0800 (PST) In-Reply-To: <4ED7146272E04A47B986ED49E771E347BB1318FD7E@Ikarus.ameusgmbh.intern> References: <4ED7146272E04A47B986ED49E771E347BB1318FD7E@Ikarus.ameusgmbh.intern> Date: Fri, 9 Nov 2012 22:00:54 +0100 X-Google-Sender-Auth: dNmP-99Vt46W9rhiIfkF5yN5cpk Message-ID: To: Christian Stoller Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Object comparison From: jpauli@php.net (jpauli) On Fri, Nov 9, 2012 at 2:18 PM, Christian Stoller wrote= : > I would like to place a suggestion for comparing objects (I hope it is no= problem, because this does not have anything to do with Sara's question - = but it came to my mind when I read her mail). It would be a great feature i= f objects could be compared to other objects with ">", "<" and the other op= erators, like it is suggested in RFC https://wiki.php.net/rfc/comparable > The DateTime class offers this feature - it would be nice if this could b= e made usable for userland classes/objects, too. I really like that idea, and the patch looks pretty good and looks backward compatible. I'm +1 with it I'm also +1 with patching the doc to describe the full default compare beha= vior. Julien.Pauli