Re: Re: Exception thrown without a stack frame
| From: | Jakob Buchgraber | Date: | Sat, 30 Jun 2007 14:19:06 +0000 |
| Subject: | Re: Re: Exception thrown without a stack frame | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-30376@lists.php.net to get a copy of this message | ||
Adam Ashley wrote:
Yes that's right! I am having a Logger class where all log messages are written into a buffer and when the destructor is called the data are transformed into some format (e.g. json) and then stored in a file and I got an exception writing data into the file as I missed the rights. Is that a bad solution? Any suggestions? Thank you! Jakob BuchgraberIn 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 AshleyI sometimes get the following errorWhen we see these, they're typically from our custom session handler.What does this mean?<b>Fatal error</b>: Exception thrown without a stack frame in <b>Unknown</b> on line <b>0</b><br />