I don't understand why
class test {
function __destruct() {
echo "I am the destructor<br>";
}
function __construct() {
$this->a=debug_backtrace(); # <=== THIS LINE
}
}
$myclass=new test();
unset($myclass);
echo "Last Line<br>";
out- and incommenting this line changes the order of the echo output. Why is the destructor not called by the unset() when the contsructor did a debug_backtrace() before?