Re: [RFC] Propety Accessors v1.1

From: Date: Wed, 10 Oct 2012 00:16:22 +0000
Subject: Re: [RFC] Propety Accessors v1.1
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-63309@lists.php.net to get a copy of this message
On Mon, 2012-10-08 at 11:52 +0000, Clint Priest wrote: > It's been a while since I posted any updates about this, a few individuals have been > asking about it privately and wanting me to get it out the door for PHP 5.5 release. It's come > a long way since the last time I posted about it. > > RFC Document: > https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented About the items in regards to reflection in there: The RFC states ReflectionClass::getMethods() will not return accessor functions (hides implementation detail). Up until now reflection is leaky and is telling the truth. We should either keep that or completely clean up reflection. (mind also get_class_methods() and such) The RFC also introduces a new class ReflectionPropertyAccessor and has methods returning ReflectionProperty and ReflectionPropertyAccessor. there should either be a common base class or interface (see i.e. ReflectionFunctionAbstract) What will ReflectionPropertyAccessor->getGetter()->getName() return? I guess reflection will be leaky there? (see first item) johannes

« previous php.internals (#63309) next »