Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41907 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23702 invoked from network); 13 Nov 2008 19:18:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Nov 2008 19:18:14 -0000 Authentication-Results: pb1.pair.com header.from=news@ger.gmane.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain m.gmane.org designates 80.91.229.2 as permitted sender) X-PHP-List-Original-Sender: php-php-dev@m.gmane.org X-Host-Fingerprint: 80.91.229.2 main.gmane.org Linux 2.5 (sometimes 2.4) (4) Received: from [80.91.229.2] ([80.91.229.2:39041] helo=ciao.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AD/6F-07308-57D7C194 for ; Thu, 13 Nov 2008 14:18:13 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L0hhg-0003Fr-8U for internals@lists.php.net; Thu, 13 Nov 2008 19:18:08 +0000 Received: from hartes-php.de ([85.214.110.30]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Nov 2008 19:18:08 +0000 Received: from sb by hartes-php.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Nov 2008 19:18:08 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Thu, 13 Nov 2008 14:17:59 -0500 Lines: 16 Message-ID: References: <491B2E81.3070601@sebastian-bergmann.de> <1317982846.20081113200111@marcus-boerger.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: hartes-php.de User-Agent: Thunderbird 2.0.0.17 (X11/20080925) In-Reply-To: <1317982846.20081113200111@marcus-boerger.de> Sender: news Subject: Re: [PHP-DEV] ReflectionProperty::setValue() and ReflectionProperty::setAccessible() From: sb@sebastian-bergmann.de (Sebastian Bergmann) 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