MDL-50788 classloader: Prevent cryptic errors on unreadable classes dir
commitd6e6b308c573585072d61a0cc12d6901435c6fea
authorDan Poltawski <dan@moodle.com>
Fri, 9 Oct 2015 09:31:17 +0000 (9 10:31 +0100)
committerDan Poltawski <dan@moodle.com>
Fri, 9 Oct 2015 09:37:32 +0000 (9 10:37 +0100)
tree6970b5de798e939dccc80d4e4aff5b4bbf6ed5c2
parent6d8dbfee53f1aa16b6ccfb3785dbb93ff1311b59
MDL-50788 classloader: Prevent cryptic errors on unreadable classes dir

Do not attempt to read an unreadable directory because previously the generated
errors were hard to fathom.

Thanks to James McQuillan for the basis of the patch.
lib/classes/component.php