MDL-52284 core: PHP7 engine errors have type Throwable

This commit is contained in:
Marina Glancy
2015-12-10 10:49:37 +08:00
parent d74b7e424f
commit 1766e6a17f
9 changed files with 28 additions and 9 deletions
@@ -145,7 +145,8 @@ abstract class database_driver_testcase extends base_testcase {
} catch (Exception $ex) {
$e = $ex;
} catch (Throwable $ex) {
$e = $ex; // PHP7.
// Engine errors in PHP7 throw exceptions of type Throwable (this "catch" will be ignored in PHP5).
$e = $ex;
}
if (isset($e)) {