Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22637 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65910 invoked by uid 1010); 1 Apr 2006 08:41:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 65895 invoked from network); 1 Apr 2006 08:41:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Apr 2006 08:41:58 -0000 X-Host-Fingerprint: 86.7.79.93 cpc1-sout5-0-0-cust860.sot3.cable.ntl.com Linux 2.5 (sometimes 2.4) (4) Received: from ([86.7.79.93:48934] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 8E/68-28679-6DC3E244 for ; Sat, 01 Apr 2006 03:41:58 -0500 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id E4744224F6C; Sat, 1 Apr 2006 09:41:53 +0100 (BST) Message-ID: <442E3CD1.9030106@teh.ath.cx> Date: Sat, 01 Apr 2006 09:41:53 +0100 User-Agent: Mail/News 1.5 (X11/20060309) MIME-Version: 1.0 To: Jochem Maas CC: "Unknown W. Brackets" , internals@lists.php.net References: <442DCE06.8070307@iamjochem.com> <442E3611.6070306@iamjochem.com> In-Reply-To: <442E3611.6070306@iamjochem.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: __set() / __get() : limitation and/or unintentional behavoiur? From: matthew@teh.ath.cx ("Matthew C. Kavanagh") Write your __set to not allow arrays to be set, and make arrays within your object private or objects with __set in their own right. You could in fact create a "CustomArray" or something and allow CustomArrays to be __set'd in your object, then control their contents with CustomArray->__set(). There's no problem here.