#54742Class autoloader messes up with interfaces
Description
I get this error:
PHP Warning: spl_autoload(): Unable to access t3lib_singleton.inc in /var/www/.../typo3_src-6.0.12/typo3/sysext/core/Classes/Core/ClassLoader.php on line 161
when I execute the scheduler.
Investigating the code I noticed, that ClassLoader::autoload() has the line
if ($classPath && !class_exists($realClassName, FALSE)) { ... }
while I believe the code should be
if ($classPath && !class_exists($realClassName, FALSE) && !interface_exists ($realClassName, FALSE)) { ... }
since t3lib_singleton is an interface and no class.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.