[TYPO3-core] Alternative patch to RFC #11587: PHP Warnings concerning missing timezone settings under PHP 5.3

Ernesto Baschny [cron IT] ernst at cron-it.de
Thu Nov 5 14:23:47 CET 2009


Dmitry Dulepov schrieb:
> ....and finally: it is a new feature! Are we still allowed to put new features into this version?
> 
> Dmitry Dulepov wrote:
>> Here is the alternative patch that implements algorithm mentioned below.
>>
>> Dmitry Dulepov wrote:
>>> Proper algorithm:
>>> - Is "force" setting empty?
>>>  |- "no" -> set it. The end
>>>  |- "yes" -> Is ini_get('date.timezone') value empty?
>>>              |-> "yes" set "default" setting. The end
>>>              |-> "no" Nothing to do. The end.

For TYPO3 4.2 I would consider not adding the new setting, but just
checking it, and setting to "UTC" if nothing is set in PHP. Thus
simulating PHP behaviour from PHP 5.2 in 5.3 and getting rid of the
warnings.

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list