Re: Exception thrown without a stack frame

From: Date: Sat, 30 Jun 2007 14:55:50 +0000
Subject: Re: Exception thrown without a stack frame
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-30378@lists.php.net to get a copy of this message
Okay, I can now reproduce the problem. Here is the code: <?php class Foo {
    public function __destruct() {
        throw new Exception();
    }
} $a = new Foo(); ?> I couldn't reproduce it before as I didn't assign the instance of Foo to a variable, however Christian Hoffmann pointed me out that I need to do this in order to get the desired error. - Jakob

« previous php.internals (#30378) next »