Re: [PHP] Object ID

2007-02-14 Thread Eli
Hmm.. sorry.. just checked it now, and you're right.. The #id in the dump and the hash given by spl_object_hash() give a unique ID among the objects instantiated in your process.. If you unset some of the objects, and re-create new instances of them, you may get the SAME ids you had before..

Re: [PHP] Object ID

2007-02-14 Thread Eli
Every dump of the same node will produce the same #id. Cloned object, is a separated new object which will have a different id. The spl_object_hash function produces such an id too (32 hex chars), which doesn't change if you change the object members. Richard Lynch wrote: I suspect that's not

Re: [PHP] Object ID

2007-02-14 Thread Richard Lynch
I suspect that's not an "absolute" ID, but just an ID for that particular dump. So it has no applicability beyond that dump... On Wed, February 14, 2007 11:31 am, Eli wrote: > Hi, > > How can I get the object ID number of each Object in PHP (v.5.2) ? > > The ID number is the one produced when dum

Re: [PHP] Object ID

2007-02-14 Thread Eli
Roman Neuhauser wrote: How can I get the object ID number of each Object in PHP (v.5.2) ? http://cz2.php.net/manual/en/function.spl-object-hash.php Thanks!!! That is exactly what I need... :-) === output: string(32) "eaa76ef5378142caec7b40b56e4b6314" string(32) "6168ec2b9db13132570a79ef0410

Re: [PHP] Object ID

2007-02-14 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-14 19:31:00 +0200: > Hi, > > How can I get the object ID number of each Object in PHP (v.5.2) ? http://cz2.php.net/manual/en/function.spl-object-hash.php -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you

[PHP] Object ID

2007-02-14 Thread Eli
Hi, How can I get the object ID number of each Object in PHP (v.5.2) ? The ID number is the one produced when dumping: === output: object(A)#1 (0) { } object(B)#2 (0) { } I do not want to buffer and parse the dumped string... Is there a nicer way? -thanks! -- PHP General Mailing List (http:/