Re: [PHP-DEV] Re: How to unload a class

2005-02-12 Thread Sara Golemon
> Finally I got a chance to test classkit. Anyway installation with "pear > install classkit" went through with no errors and after activation in > php.ini the module shows up as installed. Anyway the function does not > work > (class_import) I am still getting the same error as re-require_once a

Re: [PHP-DEV] Re: How to unload a class

2005-02-11 Thread George Schlossnagle
On Feb 11, 2005, at 2:25 AM, Markus Fischer wrote: Sara Golemon wrote: 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 th

Re: [PHP-DEV] Re: How to unload a class

2005-02-11 Thread Markus Fischer
Sara Golemon wrote: 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

Re: [PHP-DEV] Re: How to unload a class

2005-02-10 Thread Sara Golemon
>> 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, the

Re: [PHP-DEV] Re: How to unload a class

2005-02-10 Thread Sebastian Bergmann
Sean Coates wrote: > What would happen to the instanciated objects? Only allowing class unloading for classes that have no instantiated objects would be an option. -- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B

Re: [PHP-DEV] Re: How to unload a class

2005-02-10 Thread Sean Coates
Johannes Schlueter wrote: I would like to "unload" a class loaded previously by require_once. Mainly I am working on a daemon where handler-classes should be loaded and unloaded on demand. You could remove a class using classkit ... No, you could remove the methods that belong to the class and/or r