Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65118 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13861 invoked from network); 23 Jan 2013 18:53:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jan 2013 18:53:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=theanomaly.is@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=theanomaly.is@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.48 as permitted sender) X-PHP-List-Original-Sender: theanomaly.is@gmail.com X-Host-Fingerprint: 74.125.82.48 mail-wg0-f48.google.com Received: from [74.125.82.48] ([74.125.82.48:37386] helo=mail-wg0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/91-30997-49130015 for ; Wed, 23 Jan 2013 13:53:08 -0500 Received: by mail-wg0-f48.google.com with SMTP id 16so2062361wgi.3 for ; Wed, 23 Jan 2013 10:53:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=I0hiO4dF3FJyFF61wZPqXR22ck/evbYGOdjD9HGvb8g=; b=UokaFUIoGeN9cry7IEgKRk++/oKYeYc6BHPutRNBc/mH6U02Sar43wbj35Jlw8CPYa SOyB5PK0RYNEep+gBjqmA6uAU6L2O277niF4Al16Jl9GDwRJ5AP8KHUS+RT2nn/w8pUw aQJa2FJya/6KcQpqHUqF4SqOz0pgNF7q4mKEq0zIHmJYpqYsUJA/Kv/+pnaRSOXcxomz no9CmLiZLkbY8wjOJEhYJfOdrjj0nyCL1J344fA0YyuPrAPHARfOqQIeW5ml+LMZwPFt G3RmTmUGr2BONHXko6pTWZzKn58NCLw3JhLbHKc3RHeWNqM88QWvaPQ6PNxyeXJ010gg /7SA== MIME-Version: 1.0 X-Received: by 10.180.81.39 with SMTP id w7mr4439628wix.15.1358967185238; Wed, 23 Jan 2013 10:53:05 -0800 (PST) Received: by 10.227.43.19 with HTTP; Wed, 23 Jan 2013 10:53:04 -0800 (PST) In-Reply-To: <5100172C.8040903@zerocue.com> References: <50F840F4.7080704@zerocue.com> <50FE7579.1010409@zerocue.com> <5100172C.8040903@zerocue.com> Date: Wed, 23 Jan 2013 13:53:04 -0500 Message-ID: To: Clint Priest Cc: Anthony Ferrara , PHP Developers Mailing List Content-Type: multipart/alternative; boundary=bcaec55550345669d504d3f93416 Subject: Re: [PHP-DEV] [VOTE] Property Accessors for 5.5 From: theanomaly.is@gmail.com (Sherif Ramadan) --bcaec55550345669d504d3f93416 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Jan 23, 2013 at 12:00 PM, Clint Priest wrote: > > Actually you could say that last sentence is precisely opposite of the > truth in that a var_dump() will *never* expose properties that are > available via a magic __get() therefore a var_dump() already mis-leads the > developer because there can be properties that can be retrieved which are > not shown by a simple var_dump(). They're not shown because they don't exist. Thus no confusion about whether this is a property or not. If it's a property we can see it in var_dump($obj). If it's magic you can only see it in var_dump($obj->property). With accessors you see both, but you are seeing (potentially) two different values. For me, that's the "misleading" part. I agree that there are benefits here, but I can't agree that the benefits outweigh the draw backs for me, which are all the added complexity. Like Anthony said it's pretty much just coming down to custom scoping getters/setters at the end of the day. > > The result of the current RFC is a result of the endless discussion that > was had on this topic. It's really not appropriate to vote against > something if you did not make your voice heard when discussions of some > aspect were happening. I made my voice heard on the aspect that I was concerned with. My decision was based on reading the entire RFC, downloading the patch, compiling the code, testing it myself, and weighing the pros and cons of the proposal. I believe I was pretty fair, but I am just one person of many that voted. --bcaec55550345669d504d3f93416--