Re: ReflectionProperty::setValue() and ReflectionProperty::setAccessible()

From: Date: Thu, 13 Nov 2008 19:17:59 +0000
Subject: Re: ReflectionProperty::setValue() and ReflectionProperty::setAccessible()
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-41907@lists.php.net to get a copy of this message
Marcus Boerger wrote: > And testing is no argument, as you can nicely design so that this > is not necessary. For once, testing is not the argument :-) But this is not the place to discuss what I would like to use this feature for. I do not see why we added setAccessible() for getValue() and not setValue() when do not actually need it for getValue() [1]. -- [1] http://www.derickrethans.nl/private_properties_exposed.php -- Sebastian Bergmann http://sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

« previous php.internals (#41907) next »