Hi! > Ehm, you realize that object id is only reset because the old object is > freed? As long as the target object is referenced, nothing will have the same > object id.
Yes, but if you use it as some sort of ID - e.g. as in "did I already create a object of class X with parameters stated in class Y" and use class Y's object ID as a key for that, you're in for a nasty surprise if some other code deletes that object and creates new object of class Y with the same ID but completely different content. That's what one of the code examples referred to in this thread was doing, if I understood it correctly. Which only goes to emphasize my point - a lot of the people that want object IDs are either using them wrong or plan to use them wrong. And wrapping more rope around their necks is not exactly what we should be doing. -- Stas Malyshev smalys...@gmail.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php