[TYPO3-core] FYI: Added feature #11153: Integrate t3lib_div::requireFile() for simple require() calls
Oliver Hader
oliver at typo3.org
Wed May 20 16:44:19 CEST 2009
Hi Dmitry,
Dmitry Dulepov schrieb:
> Hi!
>
> Oliver Hader wrote:
>> In t3lib_div there's already a mehtod requireOnce() however the pendant
>> for require() is missing. On using requireOnce() PHP excutes several
>> checks whether a file was already loaded. In context of the autoloader
>> it can be ensured that a file implementing a class was not integrated
>> before.
>
> Why not to change requireOnce? To me this new method does not look necessary. Do I miss something?
It is used inside the autoloader to have the globl stuff like
$TYPO_CONF_VARS available. I checked with t3lib_div::requireOnce()
however, with using the new static function each FE request took about
30ms less.
olly
--
Oliver Hader
TYPO3 Release Manager 4.3
More information about the TYPO3-team-core
mailing list