[BUGFIX] Class loader tries to load classes it cannot load 40/22440/4
authorAndreas Wolf <andreas.wolf@typo3.org>
Sat, 20 Jul 2013 10:19:13 +0000 (12:19 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 27 Jul 2013 20:35:50 +0000 (22:35 +0200)
commit4d6184bdf2de8e535992f6a33979b1bb084f3f63
tree8668514484dd246b93883d6026bc906ce57eef4f
parentd1ee61d631e5c573216e3381444a0e0b43f315e0
[BUGFIX] Class loader tries to load classes it cannot load

If a class file from a third-party package is loaded which does not
follow the Vendor\Product\Classname convention (e.g. Product\Classname),
the class loader still tries to access the third component of the class
name, leading to a warning (and thus an exception, depending on your
configuration).

To fix this problem, the class loader now checks in advance if it can
possibly load this class (or rather if the classname conforms to the
specification for the CMS universe).

Change-Id: I1cd3964b9486ea591fb373533fd6cef4e9ce3989
Resolves: #50217
Releases: 6.2, 6.1, 6.0
Reviewed-on: https://review.typo3.org/22440
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/core/Classes/Core/ClassLoader.php