Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30397 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81609 invoked by uid 1010); 2 Jul 2007 04:35:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 81593 invoked from network); 2 Jul 2007 04:35:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2007 04:35:40 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.114 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.114 unknown Windows 2000 SP4, XP SP1 Received: from [63.205.162.114] ([63.205.162.114:2411] helo=us-ex1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C1/E2-32240-C9088864 for ; Mon, 02 Jul 2007 00:35:40 -0400 Received: from [127.0.0.1] ([192.168.17.6]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 1 Jul 2007 21:35:35 -0700 Message-ID: <4688808A.7030706@zend.com> Date: Sun, 01 Jul 2007 21:35:22 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: David CC: 'Pavel Shevaev' , 'Sebastian Bergmann' , internals@lists.php.net References: <468519DC.8060502@widescreen.ch> <4685785E.5010709@zend.com> <585221804.20070701154538@marcus-boerger.de> <002701c7bc28$8279c2c0$876d4840$@com> In-Reply-To: <002701c7bc28$8279c2c0$876d4840$@com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 02 Jul 2007 04:35:37.0100 (UTC) FILETIME=[6FBFB4C0:01C7BC62] Subject: Re: [PHP-DEV] toString() and Object #ID From: stas@zend.com (Stanislav Malyshev) > will be generated. It looks like it's independent of the actual properties, > etc. of the object. Spl_object_hash is what you guys want. Sure, object identity is not related to properties in any way. Same object can have different properties during the lifetime, and different objects can have identical properties. spl_object_hash is unique in the terms of object identity. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com