Hello Pavel,

  technically object id is neither what you get nor what you want. It is not
unique and thus not helpfull and we have no intention to ever provide a
function to access it. See mail archieve for reference on why we won't.
Also the function resides in extension SPL so correctly it is prefixed with
'spl_'. Furthermore it is no engine specific function but an object oriented
programming specific one. So SPL indeed is a very good place for it. Lastly
the function per design hashes the unique input it gives as we do not want
to make it more complex than necessary or give you stuff that leads to
missuse. Again see mail archive for why. That said the name appears to be
the best option already.

marcus

Sunday, July 1, 2007, 1:42:02 PM, you wrote:

>>
>>  SPL is "in the core" AFAIAC.

> I really want to hope it will be in PHP6. Still IMHO get_object_id
> sounds much better than spl_object_hash and it will be much easier(and
> more logical) to locate this function in "Class/Object Functions"
> section of documentation than in SPL...

> -- 
> Best regards, Pavel




Best regards,
 Marcus

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to