RSS Feed/News XF::dispatchLoop swallows Throwables from triggerRunOnce()

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
33,016
Points
823

Reputation:

If triggerRunOnce() throws a Error (aka a Throwable not an Exception) then XF::dispatchLoop will swallow it.

PHP:

Code:
public static function triggerRunOnce($rethrow = false)
{
...
try
{
    $fn();
}
catch (\Exception $e)
{
    self::logException($e, true);
    // can't know if we have an open transaction from before so have to roll it back

if ($rethrow)
    {
        throw $e;
    }
}
...
public function dispatchLoop(RouteMatch $match)
{
...
try
{...

Read more

Continue reading...
 
Status
Not open for further replies.
Top