Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request::current() == NULL in Vendo_Exception_Handler::handle #6

Open
zsoerenm opened this issue Mar 26, 2011 · 0 comments
Open

Request::current() == NULL in Vendo_Exception_Handler::handle #6

zsoerenm opened this issue Mar 26, 2011 · 0 comments

Comments

@zsoerenm
Copy link

Triggering a Vendo Exception Handler I first got this error:
Fatal error: Exception thrown without a stack frame in Unknown on line 0

I tracked it down and var_dumped Request::current() which returns NULL
seems that it isn't available there?
This does work though:
$view = new View_Error_404;

Notice that I use php strict mode.

For better debugging it is usefull to use a try catch block in handle():
http://www.php.net/manual/de/function.set-exception-handler.php#88082

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant