[Bug] \Phalcon\Mvc\Dispatcher does not set Last Handler on Exception #11174
Closed
Description
When an exception occurs dispatching, the last handler will not get set. The setting of the last handler is only performed on success but needs to happen in all cases as subsequent error handling actions further up the stack that may dispatch again would require this information (as in the case in one of my error handling applications) This could easily be achieved with a finally block for the try/catch and moving the setting of the last handler into that section.
See
https://github.com/phalcon/cphalcon/blob/master/phalcon/dispatcher.zep#L510
Metadata
Assignees
Labels
No labels