Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33554 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72001 invoked by uid 1010); 30 Nov 2007 16:57:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 71986 invoked from network); 30 Nov 2007 16:57:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Nov 2007 16:57:16 -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.163 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.163 mail4.netbeat.de Received: from [83.243.58.163] ([83.243.58.163:56850] helo=mail4.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/09-16143-BE040574 for ; Fri, 30 Nov 2007 11:57:16 -0500 Received: (qmail 7308 invoked by uid 507); 30 Nov 2007 16:57:12 -0000 Received: from unknown (HELO ?192.168.1.102?) (postmaster%schlueters.de@62.245.163.73) by mail4.netbeat.de with ESMTPA; 30 Nov 2007 16:57:12 -0000 To: "\"Jingcheng Zhang\"" Cc: Etienne Kneuss , Marco Kaiser , internals@lists.php.net In-Reply-To: References: <474ff865.0d135e0a.4536.ffffa229@mx.google.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 30 Nov 2007 17:57:12 +0100 Message-ID: <1196441832.1563.19.camel@johannes.nop> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 (2.12.1-3.fc8) Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] private properties .... From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi, On Sat, 2007-12-01 at 00:24 +0800, "Jingcheng Zhang" wrote: > Hi Etienne, > Is "private" only an access limiter between classes?If so, I think private > properties and methods should be OK to be extended into the child class, but > currently that's not the case, and there is also a bug here, consider the > following example: The child class is another class, "private" gives you encapsulation inside the base class's context. and preventing acces from other class's context. johannes