On Tue, Jan 20, 2009 at 13:26, Etienne Kneuss <webmas...@colder.ch> wrote:
>
> Could you please provide an example, with code, in which this function
> would be necessary ? (i.e. where you can't use SplObjeccctStorage)

Why?

As far as i understand, the issue is that spl_object_hash() is slow
and people want a faster alternatives.
Although the initial reason for the faster alternative was to do
maintain some classmap for a "random" PHP project, this has nothing to
do with the fact spl_object_hash() is slow, especially compared to the
proposed spl_object_id() function.

Now, your "workarounds" using SplObjectStorage may work for the
previous mentioned usecases - but how the frick is anyone supposed
know to know about the wonders of SplObjectStorage?
The doxygen is very confusing and definetly does not replace real
documentation - plus it doesn't mention the things you are referring
too (object => data map) or any of the other 5.3 features.

-Hannes

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

Reply via email to