> >- more importantly for users, these ids couldn't be compared to
> >var_dumps'.
>
> Why do you need to compare the output of two dump functions? Just add a
> note to the documentation that these are not the same IDs.
>

That's not a strong feature, but still, it makes the tool a little bit more
comfortable to use.

Oh, and an other benefit of the handle is that it gives a rough estimation
of the number of objects created and their instantiation order. When
debugging, any hints count.

For VarDumper, I don't need spl_objet_id(). As we spotted, the code is
already able to get the number it needs.

Having spl_object_id() is still a feature that is not exposed to userland,
but that is useful as I tried to demonstrate.

Reply via email to