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/

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to