Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44153 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19365 invoked from network); 4 Jun 2009 07:13:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jun 2009 07:13:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.220 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 209.85.220.220 mail-fx0-f220.google.com Received: from [209.85.220.220] ([209.85.220.220:62758] helo=mail-fx0-f220.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/26-23189-814772A4 for ; Thu, 04 Jun 2009 03:13:30 -0400 Received: by fxm20 with SMTP id 20so564594fxm.23 for ; Thu, 04 Jun 2009 00:12:47 -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=JTAc6BQ2N17Z2fWtGv/czuAQXUvzDDkkgaeH5dO+98o=; b=XwAKtMs8OO02UTZu3qRuMUUTbDCxxKAPGSek+JrrtMYq4jjWgSO2cZInATfvLF/AQz ts93MtskiXo7k/l+Wmttp+94TPjym7U1kjFPUC9rgCvi/ybC134SWzBjBxqtVXmZVnIJ waQt8eaA6Sdu2CmkzqSniezezbkx97SXau7QA= 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=pIKXewItFJmbeo9Is9b5R3++XahBqv7Wzrg2+UUCaZb1QabyEcGduoQdR8r8CYIpB2 vE7KQJBRg57cxAMhhQlf+5WcjnUOo+JSC0DiZiCv+msS3NAKd/1oQD+rMXFTf4j+ePLY 5XR11Z6cxe9AYpdets+zKqy5CuHpEDg7w3EpY= MIME-Version: 1.0 Received: by 10.204.118.70 with SMTP id u6mr1664367bkq.198.1244099566926; Thu, 04 Jun 2009 00:12:46 -0700 (PDT) In-Reply-To: <3949706BB9424F7FAC5AC708A01119DB@pc> References: <3949706BB9424F7FAC5AC708A01119DB@pc> Date: Thu, 4 Jun 2009 11:12:46 +0400 Message-ID: To: Stan Vassilev Cc: internals Content-Type: multipart/alternative; boundary=0016e6d64648c07b37046b808077 Subject: Re: [PHP-DEV] Test for edge cases with __get and property access flags From: indeyets@gmail.com (Alexey Zakhlestin) --0016e6d64648c07b37046b808077 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 2009/6/4 Stan Vassilev > > 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 -- Alexey Zakhlestin http://www.milkfarmsoft.com/ --0016e6d64648c07b37046b808077--