Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15098 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70915 invoked by uid 1010); 18 Feb 2005 18:15:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 70743 invoked from network); 18 Feb 2005 18:15:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2005 18:15:06 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:46125] helo=mail.zend.com) by pb1.pair.com (ecelerity 1.2 (r4437)) with SMTP id 00/E0-40085-7A036124 for ; Fri, 18 Feb 2005 13:15:04 -0500 Received: (qmail 26912 invoked from network); 18 Feb 2005 18:14:59 -0000 Received: from localhost (HELO DORON-LAPTOP.zend.com) (127.0.0.1) by localhost with SMTP; 18 Feb 2005 18:14:59 -0000 Message-ID: <5.1.0.14.2.20050217101324.01f0cdd0@localhost> X-Sender: andi@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 17 Feb 2005 10:15:10 -0800 To: Antony Dovgal ,php-dev In-Reply-To: <20050218170535.243fee54.antony@zend.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] [patch] bug #29210 is_callable - no support for private and protected classes From: andi@zend.com (Andi Gutmans) References: <20050218170535.243fee54.antony@zend.com> 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. Thanks, Andi At 05:05 PM 2/18/2005 +0300, Antony Dovgal wrote: >Hi all! > >Any volunteers to review & commit patch for #29210 ? > >Fresh diff against latest HEAD: >http://tony2001.phpclub.net/dev/tmp/is_callable_HEAD.diff > >The patch adds support of protected/private methods to is_callable(), >taking care of the context. > >test file: >http://tony2001.phpclub.net/dev/tmp/is_callable.phpt > >x-posted to #php.bugs =) > >-- >Wbr, >Antony Dovgal aka tony2001 >antony@zend.com > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php