[BUGFIX] Class loader tries to load classes it cannot load 29/22629/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:17 +0000 (21:54 +0200)
commita6a3b639680fa3efdd38158f1637bcb9a0c0bbf1
tree11e26004e837b1049d27d4829db8b5bec6506144
parent5089dd4b0dbfcdf5594485ed2c8d3d21152d114a
[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/22629
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/core/Classes/Core/ClassLoader.php