Re: Private properties, Inheritance, Reflection (5.3)

From: Date: Sat, 04 Apr 2009 11:08:56 +0000
Subject: Re: Private properties, Inheritance, Reflection (5.3)
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-43623@lists.php.net to get a copy of this message
On Sat, 2009-04-04 at 07:34 +0200, Roman Borschel wrote: > Thanks for your answer. Yes, this works, but here $f is an instance of > Foo, not Bar. When you make it an instance of Bar you get NULL. I > think this is not correct, is it? > Given that we have a ReflectionProperty of class Foo at hand, from my > understanding it should look at an instance of Bar as a Foo and return > the value. Am I missing something? Damn, you're right, was too late yesterday evening for me :-) This really looks like a bug in this feature. johannes

« previous php.internals (#43623) next »