Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12978 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10425 invoked by uid 1010); 25 Sep 2004 05:55:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 9894 invoked from network); 25 Sep 2004 05:55:50 -0000 Received: from unknown (HELO bobsilva.com) (198.237.84.92) by pb1.pair.com with SMTP; 25 Sep 2004 05:55:50 -0000 Received: from [198.237.84.90] (account me HELO salty) by bobsilva.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 439356 for internals@lists.php.net; Fri, 24 Sep 2004 22:37:07 -0700 To: Date: Fri, 24 Sep 2004 22:54:09 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Thread-Index: AcSixBMDvncX+WGkRhKj61j71aXs7g== Message-ID: Subject: Object equality From: junkmail@bobsilva.com ("Robert Silva") Hi Andi, Based on your response to my question on how to compare object equality properly. While looking through the code, in zend_operators.c in the is_identical_function, when comparing objects, it uses the same construct I came up with... result->value.lval = (Z_OBJ_HANDLE_P(op1) == Z_OBJ_HANDLE_P(op2)); Just an FYI, if comparing both object_handle and object_handlers are required for checking true equality. A Z_OBJ_COMPARE_P macro sounds nice. Bob Silva