Hello all,

You'll have to excuse my ignorance if something like this has already been posted.

In my process of writing complicated-for-the-sake-of-complicated scripts (:D), I came across a very strange error:

Fatal error: Exception thrown without a stack frame in Unknown on line 0

What was happening was that an Exception was being thrown in a class, which in turn was caught by this (in psuedo-code):

try {
        load_classes();
}
catch (Exception $e) {
        echo $e;
}

After the exception was caught and had been successfully printed to the screen, the above fatal error occured. The cause of this error was a __destruct() method in another class. Since the catch had killed the script, the destructor was not able to execute, as far as I can tell.

I've confirmed this on PHP 5.0.0 on FreeBSD and PHP 5.0.0 RC3 on Win32. Is this error message appropriate? Should this even be happening at all?

Any replies are welcomed.

Regards,
Noel Forbes

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to