Re: New function proposal: spl_class_vars / params / contents

From: Date: Wed, 21 Jan 2009 10:44:56 +0000
Subject: Re: New function proposal: spl_class_vars / params / contents
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-42742@lists.php.net to get a copy of this message
Thanks, I did propose the function because the construction in user-land is quite expensive; Actually tests showed: the user-land algorithm of mapping these objects (regarding a count of thousand; up to a half million objects / iterations) took 0,2 - 70 seconds to execute! Therefore: I would be very, very gracefully, if someone may implement this thing into the PHP engine. Thanks! -- (c) Kenan Sulayman Freelance Designer and Programmer Life's Live Poetry 2009/1/21 Guilherme Blanco <guilhermeblanco@gmail.com> > setAcessible() is the way to go! > > Doctrine 2.0 took advantage of it to be able to move to a completely > VO mapping of models. =) > > Cheers, > > On Wed, Jan 21, 2009 at 5:43 AM, Sebastian Bergmann > <sb@sebastian-bergmann.de> wrote: > > Etienne Kneuss schrieb: > >> Why can't you use Reflection in this case? It looks like you can quite > >> easily implement that in userland from Reflection. > > > > Especially using setAcessible() which was added in PHP 5.3. > > > > -- > > Sebastian Bergmann > http://sebastian-bergmann.de/ > > GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69 > > > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > -- > Guilherme Blanco - Web Developer > CBC - Certified Bindows Consultant > Cell Phone: +55 (16) 9215-8480 > MSN: guilhermeblanco@hotmail.com > URL: http://blog.bisna.com > São Paulo - SP/Brazil > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.internals (#42742) next »