Re: New function proposal: spl_object_id

From: Date: Tue, 20 Jan 2009 12:41:51 +0000
Subject: Re: New function proposal: spl_object_id
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-42725@lists.php.net to get a copy of this message
On Tue, Jan 20, 2009 at 13:26, Etienne Kneuss <webmaster@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

« previous php.internals (#42725) next »