Suppose a PHP script uses methods of class A and then regenerates new source code of class A.
If class A is already declared, does PHP provide a method to undeclare class A so that I may re-require the newly created source of class A?
By 'already declared' I mean, that the source of a class has been parsed, thus the class name is defined and bound to the class definition.
Update 2014-02-22
RunKit does provide the runkit_constant_remove. Without using RunKit, there doesn't seem to be a method to undeclared / undefine a class.