On 28 November 2014 at 21:06, Patrick Schaaf <p...@bof.de> wrote: > > I really don't get it. What are you trying to do there that you cannot do > with storing the object (reference) itself?
I probably provided a poor explanation. All this was meant as a convenience method for quick debugging. I just needed to quickly check if multiple object references which occur at different points of code execution, actually point to the same object. The question was: was this object reinitialized somewhere in between. Consider this execution flow: |Black Magic| ---> |Code of interest #1| ---> |Black Magi|c ---> |Code of interest #2| ---> ... "Black magic" represents larger chunks of OO code that is not really one's concern at the moment. The quickest way to verify if object refs at all "Code of interest" points (#1, #2, #3... #n) include the same object is to dump the object IDs somewhere (file for example) and visually inspect them. I am not saying it can not be done otherwise (storing objects in some registry, etc), but I am talking about quick and convenient way of doing it. b. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php