Project

General

Profile

Actions

Bug #21196

closed

autoloaders registered by extensions slow down the core autoloader

Added by Rupert Germann about 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-10-06
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Problem:
If an extension registers an autoloader by itself this slows down the core autoloader because extension autoloaders are registered first in the autoloading stack. Each autoloader trigger from the core will first hit the registered extension autoloaders before it it handled by the core autoloader.

Solution:
Move the core autoloader registration before the extension loading.

(issue imported from #M12133)


Files

12133.diff (2.36 KB) 12133.diff Administrator Admin, 2009-10-06 17:05

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #21181: Call to getCache() on a non-objectClosedRupert Germann2009-10-03

Actions
Actions #1

Updated by Rupert Germann about 15 years ago

besides the mentioned autoloader problem, there's another issue that would be fixed by this patch, too:
If an extension executes code in its ext_localconf.php (e.g. the paymentlib* extension do this) the function t3lib_div::xml2array() makes problems because since 4.3.0 this function is cached. The functions used for caching are getHash() and storeHash() from class t3lib_pageSelect. This class was not needed for this before 4.3 and it is not available in 4.3 because the autoloader is registered after loading the extension localconfs.

Actions #2

Updated by Rupert Germann almost 15 years ago

committed to trunk rev 6547

Actions

Also available in: Atom PDF