Hi,
The context of the register_shutdown_function is
void register_shutdown_function ( callback function)
Is it possible to call a class/object function as a callback function? Like being able to call function $A->B when terminating the script:
class A
{
function A()
{
echo "I am the constructor of A.<br />\n";
}
function B()
{
echo "I am the would-be destructor<br />\n";
}
}
$A=new A();
Thanks