[BUGFIX] Class loader tries to load classes it cannot load 28/22628/2
authorAndreas Wolf <andreas.wolf@typo3.org>
Sat, 20 Jul 2013 10:19:13 +0000 (12:19 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 28 Jul 2013 19:54:02 +0000 (21:54 +0200)
commitc26b7fac2a31cd983a3d7337f9dcc52b03fd7e50
treeb4ce86d11500b86c82de8e386bc741228f2d427e
parent7ec7df90ead72543f057b111d1b3f2d664e2b243
[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/22628
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/core/Classes/Core/ClassLoader.php