Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36485 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8500 invoked from network); 25 Mar 2008 11:05:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Mar 2008 11:05:03 -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 66.249.82.228 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: 66.249.82.228 wx-out-0506.google.com Received: from [66.249.82.228] ([66.249.82.228:30592] helo=wx-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D8/03-27660-D5CD8E74 for ; Tue, 25 Mar 2008 06:05:03 -0500 Received: by wx-out-0506.google.com with SMTP id s14so3544557wxc.26 for ; Tue, 25 Mar 2008 04:04:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=CFlgKTj3MKmpkG4DNYbVfSA5ydTy5kvs0MSFOuuD234=; b=taRgGDxOaO9iuStHJ/PpWCidDMuxXhFuWpNHyOzBZUjGKD9kgRL5x7pFuyTWaT3LMERJlyZena/BUGa1Uk+3vSalqp0hqmet0xJ4o51eQGCM7TdPwLpG6tFzKwsdNvMRaY5rmnq8JRTKIs6kpcDiS5MY/CqOuVO8PdTjWzxNx3I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=XP/b14ZkK/TlyUaD/PvC+nBhsU9k8b1RX8ubTR6PdW4LbhitYtsk1u0869yWOiUJnBsga7eZVSXy+y2bV8P33Eabd/bv7VD7v0klU0uBsG3WS5AD18ilJpmsQoJO/rBsETnXAVxk+iB3Aox05h16Bxv8ph5IN8xd+xq063L+HuI= Received: by 10.100.251.8 with SMTP id y8mr20831372anh.76.1206443099048; Tue, 25 Mar 2008 04:04:59 -0700 (PDT) Received: by 10.100.165.2 with HTTP; Tue, 25 Mar 2008 04:04:59 -0700 (PDT) Message-ID: <5a8807d10803250404o6fd33662wbbf3ff14d296cb2a@mail.gmail.com> Date: Tue, 25 Mar 2008 11:04:59 +0000 Sender: rewbs.soal@gmail.com To: "Felipe Pena" Cc: internals In-Reply-To: <46ccd1ab0803241816k413c7605p2c3fb9139afd8536@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5a8807d10802050343r43742844we89366ec47b57f4b@mail.gmail.com> <46ccd1ab0803241816k413c7605p2c3fb9139afd8536@mail.gmail.com> X-Google-Sender-Auth: 63e622a39736c96d Subject: Re: [PHP-DEV] Inconsistencies when accessing protected members From: robinf@php.net ("Robin Fernandes") Hi Felipe, On 25/03/2008, Felipe Pena wrote: > Hello, > > Do we keep the support added in http://bugs.php.net/bug.php?id=37632 > (that isn't supported in C++, for instance) My preference would be to completely remove this behaviour, by which protected methods can be invoked from outside of their declaring class's hierarchy. In other words, remove all uses of zend_get_function_root_class() (it is only ever used in conjunction with zend_check_protected()). So I'm in favour of your patch. And I think the declaration of zend_get_function_root_class() could be removed too, as it isn't used anymore after applying the patch. Many thanks, Robin