MDL-70357 cron: Catch Throwables not just Exceptions when running tasks
commite6f4190203cc2307b152a553fe02ca2997889655
authorDavid Mudrák <david@moodle.com>
Mon, 30 Nov 2020 16:20:10 +0000 (30 17:20 +0100)
committerDavid Mudrák <david@moodle.com>
Mon, 30 Nov 2020 16:25:19 +0000 (30 17:25 +0100)
treed53ecd6950799aa92719553b5994a75beaf507af
parentf34b44674f97262e60dce6b4f50a878336866bd2
MDL-70357 cron: Catch Throwables not just Exceptions when running tasks

Starting from PHP 7, most language errors throw Error exceptions. We
want to deal with those equally as with any other exception so we need
to catch all Throwables here.
lib/cronlib.php