[TYPO3-core] RFC: #847: error in tslib_fe->getFromCache()

Steffen Kamper info at sk-typo3.de
Fri Jul 25 23:56:09 CEST 2008


Dmitry Dulepov [typo3] schrieb:
> Hi!
> 
> Francois Suter wrote:
>> Are you sure? Normally what you get in such cases is a warning that 
>> the variable is not initialised. This why isset() is useful. Obviously 
>> this depends on the level of error reporting of your local PHP 
>> install, but it's cleaner to test if a variable is set before testing  
>> it.
> 
> Yes, I am sure. It will return null and you may E_NOTICE, which however 
> is disabled in PHP by default. Additionally you are not supposed to have 
> error reporting turned on in production.
> 

Hi Dmitry,

fire an E_NOTICE costs performance, even if it's not displayed. So 
declare of vars or check on isset will raise performance, don't you agree?

vg Steffen


More information about the TYPO3-team-core mailing list