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

Benjamin Mack benni at typo3.org
Wed Sep 3 19:07:26 CEST 2008


Hey Ingo,

Ingo Renner wrote:
> Dmitry Dulepov [typo3] wrote:
> 
>> And you will see a PHP warning with your when file does not exist. It 
>> is a known behaviour of file_exists(): if file does not exists, you 
>> will see a warning that file does not exist. No way to prevent it 
>> without @.
> 
> WTF? Did you test that?
Yes, I know that there was some strange behaviour with file_exists() 
throwing warnings, it's a well known issue.

However, I just tried to reproduce the warning on the command line and 
it did not work.

In any case, I googled and found (among certain issueswhere this 
happened), the following PHP bug entry:

http://bugs.php.net/bug.php?id=21531

@all of us: Seems like we can get rid of all the @s in front of the 
file_exists(), if no one objects, we /could/ create a patch for this?

@Ingo: Do a search through the TYPO3 core, there are tons of places 
where @file_exists() is used.

-- 
All the best,
benni.
-SDG-


More information about the TYPO3-team-core mailing list