Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7964 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31130 invoked by uid 1010); 18 Feb 2004 17:34:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 31098 invoked from network); 18 Feb 2004 17:34:34 -0000 Received: from unknown (HELO smtp2.netcologne.de) (194.8.194.218) by pb1.pair.com with SMTP; 18 Feb 2004 17:34:34 -0000 Received: from localhost.localdomain (xdsl-213-196-192-45.netcologne.de [213.196.192.45]) by smtp2.netcologne.de (Postfix) with SMTP id D6BB639F4E; Wed, 18 Feb 2004 18:34:32 +0100 (MET) Date: Wed, 18 Feb 2004 18:34:32 +0100 To: John Coggeshall Cc: PHP Internals Message-ID: <20040218183432.3dd5fddd@localhost.localdomain> In-Reply-To: <1077124444.30567.27.camel@coogle.localdomain> References: <1077090830.30573.1.camel@coogle.localdomain> <20040218115421.434ac336@localhost.localdomain> <1077124444.30567.27.camel@coogle.localdomain> Organization: Freelancer X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Static weirdness.. From: paj@pearfr.org (Pierre-Alain Joye) On Wed, 18 Feb 2004 12:14:04 -0500 John Coggeshall wrote: > if I download a new class from some site, or otherwise use someone > else's code, how do I know other than digging through the source on > a method's context? If $this isn't set I can't do the check, and if > then engine doesn't do it there isn't a way to tell the difference. To help John to do not read the sources ;-) (and many of us as well) it should be nice if the reflection api returns this infos in getMethods() result. For now only the methods name and the class name are returned. If it's possible. pierre