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

Dmitry Dulepov [typo3] dmitry at typo3.org
Mon Sep 1 15:07:47 CEST 2008


Hi!

Ingo Renner wrote:
> 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...

Such check is not reliable. function_exists() and is_callable() will both return true. So the only way would be to parse ini setting and search for ini_set there, which will take much more time than one @ during initialization of t3lib_DB... In any case we already have lots of @, even in loops (and can't get rid of them, like in file_exists case). So in this bug @ is the best solution.

-- 
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/pages/book-reviews/presentation-zen-by-garr-reynolds/


More information about the TYPO3-team-core mailing list