Re: Re: How to unload a class

From: Date: Thu, 10 Feb 2005 18:37:01 +0000
Subject: Re: Re: How to unload a class
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-14801@lists.php.net to get a copy of this message
>> What would happen to the instanciated objects? > > Only allowing class unloading for classes that have no instantiated > objects would be an option. > And how would you know if it'd been instantiated? Even if you recursively looped through every variable hash from EG(symbol_table) on down, there'd still be the possibility that one or two objects would be hiding in a resource somewhere (i.e. php_stream_context). This is also why delete() doesn't (and likely won't ever) exist in PHP. Anyway, sounds like what he wants is classkit_import(). -Sara

« previous php.internals (#14801) next »