Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8003 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15552 invoked by uid 1010); 19 Feb 2004 15:34:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 15510 invoked from network); 19 Feb 2004 15:34:40 -0000 Received: from unknown (HELO shiva.mind.de) (212.42.230.204) by pb1.pair.com with SMTP; 19 Feb 2004 15:34:40 -0000 Received: from [192.168.1.105] (p508EB5F8.dip.t-dialin.net [80.142.181.248]) by shiva.mind.de (Postfix) with ESMTP id D909397B58; Thu, 19 Feb 2004 16:34:33 +0100 (CET) Date: Thu, 19 Feb 2004 16:32:49 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <145748475453.20040219163249@marcus-boerger.de> To: Pierre-Alain Joye Cc: internals@lists.php.net In-Reply-To: <20040219155141.76088c90@localhost.localdomain> References: <20040219155141.76088c90@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] add fn_flags to getMethod() result (reflection) From: helly@php.net (Marcus Boerger) Hello Pierre-Alain, Thursday, February 19, 2004, 3:51:41 PM, you wrote: > Hello, > Regarding the question about how to know if a method is declared static > or not, I add the fn_flags to the result (flags property) of > getMethod();. I tested it with PHP userland classes but not internal > objects. This new property reflects the internal fn_flags in > zend_function struct. The constants required are already available so > it's easy to get the method type. > If I missed some other reflection methods which already provide this > info, please point me to them :) here you go: php -r '$m = new reflection_method("reflection_method","export"); var_dump($m->isStatic());' -- Best regards, Marcus mailto:helly@php.net