Does there happen to be any way of taking a currently defined class and dropping it's definition so that a it can be reincluded and redefined?
In our development process here we commonly use stubs to take the place of classes which are not yet complete or are in the process of being worked on. Unfortunately when we start using user sessions to view the site, the stubs get in the way of further development on the code.
I probably doubt it is possible to do something like:
uninclude('/path/to/some/stub/file.class.php');
and things like unset() only work on variables (as far as I have been able to discover). I would like to be able to do something similar to:
/ destroy previous class definition /
destroy_classdef('ClassName');
include_once('/path/to/some/non/stub/file.class.php');
Any chance there is a hack for doing something like this (rather than temporarily going through all of my code and redefining classnames)?