Skip to content

Commit

Permalink
Fixed bug (Exception in preDispatch is not caught)
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Jan 28, 2015
1 parent 29c8f18 commit 4cd89fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yaf_dispatcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,7 @@ yaf_response_t * yaf_dispatcher_dispatch(yaf_dispatcher_t *dispatcher TSRMLS_DC)

do {
YAF_PLUGIN_HANDLE(plugins, YAF_PLUGIN_HOOK_PREDISPATCH, request, response);
YAF_EXCEPTION_HANDLE(dispatcher, request, response);
if (!yaf_dispatcher_handle(dispatcher, request, response, view TSRMLS_CC)) {
YAF_EXCEPTION_HANDLE(dispatcher, request, response);
zval_ptr_dtor(&response);
Expand Down

0 comments on commit 4cd89fd

Please sign in to comment.