Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44178 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43534 invoked from network); 5 Jun 2009 13:07:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2009 13:07:13 -0000 Authentication-Results: pb1.pair.com header.from=oorza2k5@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=oorza2k5@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.209 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: oorza2k5@gmail.com X-Host-Fingerprint: 209.85.218.209 mail-bw0-f209.google.com Received: from [209.85.218.209] ([209.85.218.209:50177] helo=mail-bw0-f209.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2A/3D-09243-088192A4 for ; Fri, 05 Jun 2009 09:07:13 -0400 Received: by bwz5 with SMTP id 5so1647847bwz.23 for ; Fri, 05 Jun 2009 06:07:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=WnQi7iXzMllTWH8UXXMjYI4OrX9nRX3Kmk2yF5XGRWQ=; b=CHVX+A87bBwyBN9nrdVjyu2jwvB1AuO56FroFc3HLk3HixXT5iryC48SkoYeemWede LSvUblj62QEuckHfYEhvZFNN0+K3bpRW5eimsI7npej+mg7mP17kzUDSkj/B8aTPFDDM y70YrbIPQVfBxsa7lqfsME0FEYdOaITN1+I5s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=qzXbXvkHVNxBAajCykHQXWcF78hCEEvXti01LHoPMl+JVOOtdwRJBwSAZ9k/P+03qj +BB1RjvPz3EWHa5SaDJUMCrh77i4rEeZNKXPtUjdxU5WyFZxg04quL0E0RShztKvH2kF CzPzSGVPN4VT+8L53+8MKp24Q6v1FwnjiGz0g= MIME-Version: 1.0 Received: by 10.239.132.147 with SMTP id 19mr271846hbr.153.1244207229395; Fri, 05 Jun 2009 06:07:09 -0700 (PDT) In-Reply-To: References: <3949706BB9424F7FAC5AC708A01119DB@pc> Date: Fri, 5 Jun 2009 09:07:09 -0400 Message-ID: <68de37340906050607v205af5awe088e4094af814c7@mail.gmail.com> To: Stan Vassilev Cc: internals Content-Type: multipart/alternative; boundary=001485f629a4ef6251046b9991fb Subject: Re: [PHP-DEV] Test for edge cases with __get and property access flags From: oorza2k5@gmail.com (Eddie Drapkin) --001485f629a4ef6251046b9991fb Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I thought this was the expected behaviour as well and I am quite sure that I've used it in an experiment (all class members private and _get() output escapes them) that failed pretty miserably. But I did think this was the expected behavior. Perhaps it ought to throw an E_STRICT? On Fri, Jun 5, 2009 at 8:58 AM, Stan Vassilev wrote: > > > 3. When the caller tries to retrieve $object->foo, and foo is a > private/protected member the caller has no access to, instead of an error, > __get is called. > > I'm not very sure the current behavior on item 3 is the best one (maybe > error should be thrown regardless?), but freezing on either would be better > than leaving it undefined :) > > > I always thought that this is the supposed behaviour. I believe I even > relied on it in one of my projects > > > Hi, > > If the community wants it like it is, then I'm just fine with that: as long > as the test is committed, so that it doesn't change overnight. Any > volunteers :)? > > Regards, > Stan Vassilev --001485f629a4ef6251046b9991fb--