Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63170 invoked from network); 17 Mar 2003 19:37:07 -0000 Received: from unknown (HELO mailout06.sul.t-online.com) (194.25.134.19) by pb1.pair.com with SMTP; 17 Mar 2003 19:37:07 -0000 Received: from fwd01.sul.t-online.de by mailout06.sul.t-online.com with smtp id 18v0Pw-0006xT-00; Mon, 17 Mar 2003 20:37:04 +0100 Received: from baumbart.post.rwth-aachen.de (520072483730-0001@[80.142.175.171]) by fwd01.sul.t-online.com with esmtp id 18v0Pm-1Yext2C; Mon, 17 Mar 2003 20:36:54 +0100 Reply-to:marcus.boerger@post.rwth-aachen.de Message-ID: <5.1.0.14.2.20030317203514.024cdc58@pop.t-online.de> X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 17 Mar 2003 20:36:52 +0100 To: Andrei Zmievski Cc: PHP Internals In-Reply-To: <20030317193045.GA27116@hyperion.gravitonic.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Sender: 520072483730-0001@t-dialin.net Subject: Re: [PHP-DEV] Re: zend_module_entry changes - feature request From: marcus.boerger@t-online.de ((Marcus =?iso-8859-1?Q?B=F6rger?=)) References: <20030317193045.GA27116@hyperion.gravitonic.com> At 20:30 17.03.2003, Andrei Zmievski wrote: >Tal, > >I guess you just want to find out which classes an extension defines. >I don't think the current architecture allows for it. > >There are two ways of going about it: > >1. Keep track of extension classes with a HashTable (or list) in >zend_module_entry. This list would be updated when >zend_register_internal_class() is called. > >2. Add a field called module_number to zend_class_entry. > >I think the first one would be more appropriate, but I welcome other >comments. You forgot about one idea i do like much more: registering extension classes in a seperate namespace (e.g.: the extension name). Besides that the idea is really cool and improves introspection. What about adding a SHORT textual info to the function/class members? marcus