Re: [RFC] Remove the date.timezone warning

From: Date: Tue, 27 Jan 2015 15:51:47 +0000
Subject: Re: [RFC] Remove the date.timezone warning
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-81246@lists.php.net to get a copy of this message
On 27/01/2015 16:39, Bob Weinand wrote:
Actually, the example ini files could even start with a friendly reminder that date.timezone should be set.
Not arguing here. I'm on your side here, we can give the timezone a better visibility in the ini without problems.
Good :)
The point is just to have date() (with UTC obviously) usable without getting warned in a simple ./sapi/cli/php -r '/* something with date() */' call. And no, I don't want to always forget to explicitly set "-ddate.timezone=UTC". It's not comfortable that way.
So, you'd prefer to make life harder for end users in order to make life easier to those calling sapi/cli/php without a php.ini. To me, it doesn't sound like a good plan, sorry. I don't get why echo 'date.timezone=UTC' >> $prefix/lib/php.ini isn't comfortable enough for you. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/

« previous php.internals (#81246) next »