Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63305 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83314 invoked from network); 9 Oct 2012 13:41:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Oct 2012 13:41:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qc0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:56547] helo=mail-qc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EC/89-23861-88924705 for ; Tue, 09 Oct 2012 09:41:28 -0400 Received: by mail-qc0-f170.google.com with SMTP id d42so4264918qca.29 for ; Tue, 09 Oct 2012 06:41:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=QU+LP3jXs5UfRqTBClKhzhjFa1zg81UWZhYP0w7WX58=; b=PyvMHODR2YxtOP0IjIZwPGJYxqOcgM9420FNLkqCkrN7+F1AW+PoFPeFa/VarqEW5P n+Nb2tJ9a4j2+MeekSrC1vCzhzupJwSLpPF+hwwAcNkMLR7K3idkwlw8t2YL9ASFFhyC BYmLefjMYhnqXKimzt3HOyoNc1fslio5orA7w1SyBxZdNvuWcDpdDnNvNxscxgwWXRS9 PFAAoTLpfek9yio1Cge3cB3c6eXtItOfoUmzB4eZWp/Qi+5OcAzgNmnUUZJsYyCVtrIH khN4IG2MkfJAK+1n6H+/QN8HzIMfmvDY1l9CBRynhRojjJajFnxDECGslEx32n4Npich b3Kw== MIME-Version: 1.0 Received: by 10.49.118.40 with SMTP id kj8mr3322097qeb.64.1349790085563; Tue, 09 Oct 2012 06:41:25 -0700 (PDT) Received: by 10.49.107.163 with HTTP; Tue, 9 Oct 2012 06:41:25 -0700 (PDT) In-Reply-To: References: <9570D903A3BECE4092E924C2985CE485612B3B48@MBX202.domain.local> Date: Tue, 9 Oct 2012 14:41:25 +0100 Message-ID: To: Nikita Popov Cc: Clint Priest , "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] Propety Accessors v1.1 From: leight@gmail.com (Leigh) > What concerns me with the current implementation is that it leaks many > implementation details, in particular the fact that the accessors are > implemented as *real* __getXYZ methods and automatic implementations > also use *real* $__XYZ properties. Further to this, take the following example. public $_state { set { ... } } This automatically generates a "hidden" function __set_state(), which is a magic method already (and should be declared static, and take an array as it's only parameter) Another fine example of how automatically generating *real* implementations can potentially break things.