Re: Re: zend_module_entry changes - feature request

From: Date: Mon, 17 Mar 2003 19:17:40 +0000
Subject: Re: Re: zend_module_entry changes - feature request
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-72@lists.php.net to get a copy of this message
On Mon, 2003-03-17 at 14:30, 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. What about adding an introspection element to the zend_module_entry, that would allow it to serve up such information per-request. This way private functions could be hidden, necessary classes and datastructures could be exposed, and it would be extensible to boot? -Sterling > > -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) -- "Science is like sex: sometimes something useful comes out, but that is not the reason we are doing it." - Richard Feynman

« previous php.internals (#72) next »