Adam Ashley wrote:
I sometimes get the following error
 >> <b>Fatal error</b>:  Exception thrown without a stack frame in
 >> <b>Unknown</b> on line <b>0</b><br />

What does this mean?

When we see these, they're typically from our custom session handler.


In my experience that error is almost certainly in a piece of your code that is run after the main execution of the program is complete. So places to check are shutdown functions (things registered with register_shutdown_function()), custom session handlers and object destructors. Basically any piece of code that can be called after the official execution of your script is complete and clean-up is occuring.

Adam Ashley

Yes that's right. This error occured in my Logger class as all the messages are written into a buffer and when the destructor is called the data in the buffer are written into a file.
Is that a bad solution? Any alternatives?

Thank you!

Jay

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

Reply via email to