Issue Bug Closed

#43331"Strict standards: Declaration of "CompatbilityClassLoaderPhpBelow50307" bug

Ernesto Baschny 11/27/12, 09:27 updated 10/23/17, 22:14

Description

On PHP < 5.3 I get this warning on top of the login screen (and also in the whole backend, making it completely unusable):

Strict standards: Declaration of TYPO3\CMS\Core\Compatibility\CompatbilityClassLoaderPhpBelow50307::requireClassFileOnce() should be compatible with that of TYPO3\CMS\Core\Core\ClassLoader::requireClassFileOnce() in /…/typo3_src/typo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php on line 239

Acording to git bisect this got broken with change #43285.

Indeed the declaration of the methods differ:

class ClassLoader {
...
        static protected function requireClassFileOnce($classPath) {
...
class CompatbilityClassLoaderPhpBelow50307 extends \TYPO3\CMS\Core\Core\ClassLoader {
...
        static public function requireClassFileOnce($classPath, $className) {
...

And by the way, the classname CompatbilityClassLoaderPhpBelow50307 is misspelled (misses an “i” in Compat*i*bility).

Reviews 1