Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23455 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13440 invoked by uid 1010); 16 May 2006 13:25:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 13425 invoked from network); 16 May 2006 13:25:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 May 2006 13:25:26 -0000 X-PHP-List-Original-Sender: stefan.walk@gmail.com X-Host-Fingerprint: 64.233.182.190 nf-out-0910.google.com Linux 2.4/2.6 Received: from ([64.233.182.190:44586] helo=nf-out-0910.google.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id AC/C1-19568-5C2D9644 for ; Tue, 16 May 2006 09:25:26 -0400 Received: by nf-out-0910.google.com with SMTP id g2so69687nfe for ; Tue, 16 May 2006 06:25:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EWnqWV+EIqgy5cQwhyTJPAdzPnyJ/zaE4zCppttzT+v8DjPzvC9/zHvnWBoTVTSNCotfUlK+LLQ8pCtxQCvVQqeay5ch2duHIqZ5KR6Fd7DzZ4bnL7q/7xwftjvvCzyyjb6vbqfbAKEkp92L2U3EhPzCuFNuprO8yxxDYBFKbHc= Received: by 10.48.223.11 with SMTP id v11mr3007667nfg; Tue, 16 May 2006 06:25:22 -0700 (PDT) Received: by 10.49.57.20 with HTTP; Tue, 16 May 2006 06:25:22 -0700 (PDT) Message-ID: <4858f9d90605160625u11fcaef8ta07fc199558eca9f@mail.gmail.com> Date: Tue, 16 May 2006 15:25:22 +0200 To: "Ron Korving" Cc: internals@lists.php.net In-Reply-To: <63.CD.19568.525B9644@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <785810036.20060511193536@ionzoft.com> <7.0.1.0.2.20060515210559.06acd350@zend.com> <1217741491.20060515174322@ionzoft.com> <89.E7.19568.50199644@pb1.pair.com> <7.0.1.0.2.20060516133953.09045a30@zend.com> <63.CD.19568.525B9644@pb1.pair.com> Subject: Re: [PHP-DEV] private, protected, readonly, public From: stefan.walk@gmail.com ("Stefan Walk") On 5/16/06, Ron Korving wrote: > > class Foo > { > private $bar =3D 5; > } > > $foo =3D new Foo(); > echo $foo->bar; // prints 5 > $foo->bar =3D 4; // error > > ?> I'm against visible private variables. If they are visible, they are part of the interface of the class, which means changing the implementation means a BC break. If this functionality is going in, please do it only for protected... Regards, Stefan