Ken Stanley wrote: > The problem that I run into, that I feel could be improved, is that if the > view class throws the exception during exception handling, I get the error, > "Fatal error: Exception thrown without a stack frame in Unknown on line 0."
This may be a documentation problem. set_exception_handler() is often touted as an easy way to define a global try/catch block, but it's not meant to call a complex View subsystem to render the error, after all, it occurs during the destructor phase. At the very least, the documentation should mention that throwing an exception from inside this handler will result in a fatal error. I think, however, it should actively encourage using a global try {} catch {} block. I understand this solution won't work if application Exceptions don't have a common parent class, but this is already recommended as a good practice. -- Edward Z. Yang GnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php