MDL-50788 classloader: Prevent cryptic errors on unreadable classes dir
commit0496ac6305822f4cabff854440384633e701d82c
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:36:59 +0000 (9 10:36 +0100)
treefd415bf6c65fc5589a0e5f3fcb1d91c6b0b48ed3
parent74fad2ce3de05ce158bf6588c20bb277154d8d9d
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