Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79635 invoked from network); 18 Mar 2003 14:30:19 -0000 Received: from unknown (HELO err) (212.199.104.98) by pb1.pair.com with SMTP; 18 Mar 2003 14:30:19 -0000 Received: by err (Postfix, from userid 1000) id B476913688; Tue, 18 Mar 2003 16:30:21 +0200 (IST) Received: from localhost (localhost [127.0.0.1]) by err (Postfix) with ESMTP id A83DD1356F; Tue, 18 Mar 2003 16:30:21 +0200 (IST) Date: Tue, 18 Mar 2003 16:30:21 +0200 (IST) X-X-Sender: tal@err To: Andrei Zmievski Cc: PHP Internals In-Reply-To: <20030317193045.GA27116@hyperion.gravitonic.com> Message-ID: References: <20030317193045.GA27116@hyperion.gravitonic.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Re: zend_module_entry changes - feature request From: tal@php.net (Tal Peer) On Mon, 17 Mar 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. > This way looks ok to me too. I think it can be done by adding an HashTable of zend_class_entry's to the zend_module_entry and then passing its address to zend_register_internal_class (which will update it). The only problem with that is that it will require modifying any extension that registers classes. Tal > -Andrei http://www.gravitonic.com/ > > For society, it's probably a good thing that engineers value function over > appearance. For example, you wouldn't want engineers to build nuclear power > plants that only _look_ like they would keep all the radiation inside. > (Scott Adams - The Dilbert principle) > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- Tal Peer tal@php.net