Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42557 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88214 invoked from network); 11 Jan 2009 12:50:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jan 2009 12:50:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=rewbs.soal@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rewbs.soal@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.44.29 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rewbs.soal@gmail.com X-Host-Fingerprint: 74.125.44.29 yx-out-2324.google.com Received: from [74.125.44.29] ([74.125.44.29:63752] helo=yx-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/D1-26912-EFAE9694 for ; Sun, 11 Jan 2009 07:50:06 -0500 Received: by yx-out-2324.google.com with SMTP id 3so4299824yxj.83 for ; Sun, 11 Jan 2009 04:50:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=zq2/9fRobc30ZpmcS3nhPALZJFexTNtUTzMJNcoIOWM=; b=nkWLj7UXlLEAn+0NfMGsHyZfIk9RvHejgaKA3HSvPJMDNu5WywlrVojewp3vR86cZD 3qWzq9N0MlzDGfTUVYCXDbMu4h0hr8sAb+O+zWRMwY/e79tIfy8Zi3tT9Nzh9a8zD/ZE wukoz1Jk2YDip5vgolpf/J5fbG4UdONyUYL2Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=AmSvplaKLvh5rYMIuAhZoiiYoxHuP033QEeoxmyC1wns134r8iPJ0q7E6l0sG25YoS dKezqLWCtg9fVmHvnPSSGElUKFN306s7mfZpvD7iVc22V5WeZQkDL3CQD1sCComG69x8 GN0ww03SdeJ94pJJWqMjEDfM4TYqvTlT6lJ1I= MIME-Version: 1.0 Sender: rewbs.soal@gmail.com Received: by 10.151.9.1 with SMTP id m1mr8222673ybi.93.1231678203363; Sun, 11 Jan 2009 04:50:03 -0800 (PST) In-Reply-To: <496682E9.4000604@gravitonic.com> References: <4963D8AD.5090502@gravitonic.com> <5a8807d10901080900w5d794c54gc67df2198e2237f7@mail.gmail.com> <496682E9.4000604@gravitonic.com> Date: Sun, 11 Jan 2009 12:50:03 +0000 X-Google-Sender-Auth: fd29ec25ba063638 Message-ID: <5a8807d10901110450h45c3d4b6qc748abe2e15e573f@mail.gmail.com> To: Andrei Zmievski Cc: PHP internals , David Coallier , Dmitry Stogov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Private member/method access inconsistency From: robinf@php.net (Robin Fernandes) >> Addressing those two points would make things even more consistent. >> I'm adding some testcases to illustrate. > > I fixed the callback case in 5_2. Need to talk to Dmitry about 5_3 and HEAD > because zend_is_callable_check_func() is damn complex now. > > -Andrei > Thanks! I noticed another inconsistency with this new behaviour: since bug 42937 was fixed, calling a non-existent method with the scope resolution operator (::) results in __call() being invoked if the current object scope is compatible with the target scope. I think this should now be adapted to apply when calling a non-visible method with ::. Patch against 5_2 with test case: http://pastebin.com/f7ee7a9fc Regards, Robin