[TYPO3-core] FYI24: #8826: calls to ini_set produces warnings

Martin Kutschker masi-no at spam-typo3.org
Sun Aug 31 18:25:26 CEST 2008


Ingo Renner schrieb:
> Dmitry Dulepov [typo3] wrote:
> 
> 
> Dmitry,
> 
>> Solution: trivial, use @ in front of ini_set() and ini_restore() to
>> mask warnings.
> 
> Please try to come up with a different solution than supressing the
> warning with an @. The @ character is the most performance hitting
> single character PHP offers... Please use an if() to check whether
> ini_set is available...

I will check that later but I want to add that that I hope Dmitry has
checked if the logic of the code does something useful when ini_set
isn't available. Maybe the check for ini_set makes more sense than just
saving a millesecond.

Masi


More information about the TYPO3-team-core mailing list