Project

General

Profile

Actions

Bug #54742

closed

Class autoloader messes up with interfaces

Added by Markus Kappe almost 11 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2014-01-04
Due date:
% Done:

50%

Estimated time:
0.50 h
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

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.

Actions

Also available in: Atom PDF