Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31065 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1117 invoked by uid 1010); 18 Jul 2007 20:21:39 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 1102 invoked from network); 18 Jul 2007 20:21:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jul 2007 20:21:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=info@adaniels.nl; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=info@adaniels.nl; sender-id=unknown Received-SPF: error (pb1.pair.com: domain adaniels.nl from 82.94.236.173 cause and error) X-PHP-List-Original-Sender: info@adaniels.nl X-Host-Fingerprint: 82.94.236.173 loco.helderhosting.nl Linux 2.5 (sometimes 2.4) (4) Received: from [82.94.236.173] ([82.94.236.173:34252] helo=loco.helderhosting.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1E/A0-29314-1567E964 for ; Wed, 18 Jul 2007 16:21:39 -0400 Received: from [192.168.2.13] (bas3-toronto01-1177778256.dsl.bell.ca [70.51.120.80]) by loco (Postfix) with ESMTP id 2CA172C5A43 for ; Wed, 18 Jul 2007 22:21:35 +0200 (CEST) Message-ID: <469E765C.2080101@adaniels.nl> Date: Wed, 18 Jul 2007 16:21:48 -0400 User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: private_write/protected_write properties From: info@adaniels.nl (Arnold Daniels) Hi all, I'll probably be lynched for bringing up this subject again, since it caused a long discussion a year ago. Anyway I look in the archives and there was never a real conclusion made, so I'm bringing it up again. This time for a feature I personally would like to see in PHP 6. Very often I want to be able to be get a property publicly, while only being able to set it within the class. You can solve this by using a getPropery() method or by using __get($property), but this feels more like a workaround. I think the private/public state of properties is becoming more important now that using public frameworks is becoming main stream. Therefor I believe this would be a good addition. Best regards, Arnold