Re: toString() and Object #ID

From: Date: Wed, 04 Jul 2007 12:02:19 +0000
Subject: Re: toString() and Object #ID
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-30435@lists.php.net to get a copy of this message
Am 01.07.2007 um 21:18 schrieb Pavel Shevaev:
Again see mail archive for why. That said the name appears to be the best option already.
Oh, yes, you're right spl_object_hash does its job and does it very well, there's really no point rename it(or make an alias) into object_get_id. I should have stated more clear what I think object_get_id could actually be.
Not quite. It creates a hash of an object, so two objects with the same data yield the same hashes: var_dump(spl_object_hash(new stdClass()), spl_object_hash(new stdClass())); - David

« previous php.internals (#30435) next »