[TYPO3-core] RFC #4272: Inconsistent return values of ini_get() produce false positives for safe_mode detection

Steffen Kamper info at sk-typo3.de
Mon Oct 4 09:26:00 CEST 2010


Hi,

Marcus Krause schrieb:
> Hi!
> 
> Christian Futterlieb schrieb am 10/03/2010 11:45 PM Uhr:
>> Hi!
>>
>>> Example:
>>> public static function isSafeModeEnabled() {
>>>     return filter_var(ini_get('safe_mode'), FILTER_VALIDATE_BOOLEAN,
>>> FILTER_REQUIRE_SCALAR | FILTER_NULL_ON_FAILURE);
>>> }
>> This does not work for me (Ubuntu 10.04 LTS).
> 
> Strange! What makes you believe it's not working in your environment?
> (Errors, unexpected results?)
> 

why not create a unit test? We need some anyway for this new class.

vg Steffen


More information about the TYPO3-team-core mailing list