Re: toString() and Object #ID

From: Date: Mon, 02 Jul 2007 04:35:22 +0000
Subject: Re: toString() and Object #ID
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-30397@lists.php.net to get a copy of this message
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

« previous php.internals (#30397) next »