Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15126 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71058 invoked by uid 1010); 20 Feb 2005 16:45:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 71043 invoked from network); 20 Feb 2005 16:45:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2005 16:45:45 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:38781] helo=mail.zend.com) by pb1.pair.com (ecelerity 1.2 (r4437)) with SMTP id 87/CA-12222-8BEB8124 for ; Sun, 20 Feb 2005 11:45:45 -0500 Received: (qmail 32236 invoked from network); 20 Feb 2005 16:45:39 -0000 Received: from internal.zend.office (HELO localhost) (10.1.1.1) by internal.zend.office with SMTP; 20 Feb 2005 16:45:39 -0000 Date: Sun, 20 Feb 2005 19:44:14 +0300 To: Andi Gutmans Cc: internals@lists.php.net Message-ID: <20050220194414.0009594e.antony@zend.com> In-Reply-To: <5.1.0.14.2.20050217101324.01f0cdd0@localhost> References: <20050218170535.243fee54.antony@zend.com> <5.1.0.14.2.20050217101324.01f0cdd0@localhost> X-Mailer: Sylpheed version 1.0.0 (GTK+ 1.2.10; i386-vine-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [patch] bug #29210 is_callable - no support for private and protected classes From: antony@zend.com (Antony Dovgal) On Thu, 17 Feb 2005 10:15:10 -0800 Andi Gutmans wrote: > Hi Antony, > > We have too many places that manually check access restrictions at > this point. I would like to generalize it and use that in all places, > and make it easier to fix problems like your patch does. Haven't had > the time yet to dive deeply into it and see what the right way would > be. For example, we have similar code in zend_std_get_method(). > > If you have any good ideas of how we can generalize it email me. As far as I can see zend_std_get_method() uses different semantics and zend_is_callable() is used for more general kind of checks. We can of course divide zend_is_callable() into several functions, but it would just add more mess IMO. -- Wbr, Antony Dovgal aka tony2001 antony@zend.com