Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43623 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89972 invoked from network); 4 Apr 2009 11:09:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Apr 2009 11:09:04 -0000 Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.133 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.133 mailout1.netbeat.de Linux 2.6 Received: from [83.243.58.133] ([83.243.58.133:45445] helo=mailout1.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 75/8B-01679-DCF37D94 for ; Sat, 04 Apr 2009 06:09:04 -0500 Received: (qmail 19747 invoked by uid 89); 4 Apr 2009 11:25:38 -0000 Received: from unknown (HELO ?192.168.1.101?) (johannes%schlueters.de@88.217.61.230) by mailout1.netbeat.de with ESMTPA; 4 Apr 2009 11:25:38 -0000 To: Roman Borschel Cc: PHP Developers Mailing List , Sebastian Bergmann In-Reply-To: <11478D41-777A-42BC-9CE7-105FFFEA4B74@gmx.net> References: <2FA0A495-EC1A-4C51-9EE6-F9680D9FD114@gmx.net> <1238802796.5741.1.camel@goldfinger> <11478D41-777A-42BC-9CE7-105FFFEA4B74@gmx.net> Content-Type: text/plain Date: Sat, 04 Apr 2009 13:08:56 +0200 Message-ID: <1238843337.5741.3.camel@goldfinger> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Private properties, Inheritance, Reflection (5.3) From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) 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