Re: toString() and Object #ID

From: Date: Mon, 02 Jul 2007 17:43:13 +0000
Subject: Re: toString() and Object #ID
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-30407@lists.php.net to get a copy of this message
I really don't want to be annoying but from the end user's POV spl_object_hash sounds like a function which returns a hash but not an identity. Any tiny chance it will be available as object_get_id in PHP6? ;)
It does give the hash, which is unique for each object. In which form would you expect object_get_id to return object's identity? PHP doesn't have a type of "tuple of C pointer and long integer" ;) -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#30407) next »