Exception handling of Concrete overrides try catch block

Permalink
Inside both 5.7.3 and 5.7.4 I have a package that declares a route in the controller.php. When I open the URL for that route the code works fine. However, when I add a try .. catch block and throw an exception then Concrete handles the exception instead of jumping to the catch block. The exception is handled by function handleException of the \Whoops\Run class.

\packages\my_package\src\component\classname.php
...
public function methodName()
{
    try {
        throw new \AccessDeniedException('test'); // any exception will do the trick
    } catch (\Exception $e) {
        echo 'do something';
    }
}
...


\packages\my_package\conctroller.php
...
public function on_start() {
     \Route::register('/custom/route', '\Concrete\Package\MyPackage\Src\Component\Classname::methodName');
}
...

View Replies:
RuudZL replied on at Permalink Reply
This seems similar tohttps://bugs.php.net/bug.php?id=43377... but I am on PHP 5.6.3, so that bug should have been fixed.