We could add a counter that gets incremented for each object that is created and associate that number with the object. Wouldn't that solve the problem (if there is one)?
It would solve it, but it would require modifying each extension dealing with objects in order to register all objects in this global registry and of course it would require adding another value into object structure. I'm not sure having running numeric ID is that important.
If you just need to know if two variables are the same object, you have ===. If you need to index by it, you have the hash.
-- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN: [EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php