I'm probably going to put this into vote tomorrow.
The RFC got some update from neutrality aspect and covers some feedback from the initial discussion thread.
The link is:
https://wiki.php.net/rfc/date.timezone_warning_removal https://wiki.php.net/rfc/date.timezone_warning_removal
Bob
I'm probably going to put this into vote tomorrow.
The RFC got some update from neutrality aspect and covers some
feedback from the initial discussion thread.The link is: https://wiki.php.net/rfc/date.timezone_warning_removal
https://wiki.php.net/rfc/date.timezone_warning_removal
Are you sure that "the ini file is created by the package maintainer and
it includes the “date.timezone” setting" is true? Last time I checked it
wasn't true across the board, so it's sounds more like wishful thinking
at the moment. But I could be wrong, indeed.
The current behaviour is also not described properly. The warning is
displayed the first time some date/time functionality is employed. And
while I'd agree that generally speaking date.timezone is not the most
important setting, in that very moment it most likely is.
Your particular problem could be easily fixed by using a common
--with-prefix=/opt/php-build and putting the timezone in
/opt/php-build/lib/php.ini, so I don't understand the urgency to change
the behaviour for everyone... Anyway, let the voting begin ;)
Cheers
Matteo Beccati
Development & Consulting - http://www.beccati.com/
I'm probably going to put this into vote tomorrow.
The RFC got some update from neutrality aspect and covers some
feedback from the initial discussion thread.The link is: https://wiki.php.net/rfc/date.timezone_warning_removal
https://wiki.php.net/rfc/date.timezone_warning_removalAre you sure that "the ini file is created by the package maintainer and
it includes the “date.timezone” setting" is true? Last time I checked it
wasn't true across the board, so it's sounds more like wishful thinking
at the moment. But I could be wrong, indeed.
Gentoo uses one of the php.ini files from the tarball without any
modifications.
--
Ole Markus
Hi!
Are you sure that "the ini file is created by the package maintainer and
it includes the “date.timezone” setting" is true? Last time I checked it
I my experience, it is unfortunately not universally true - I've seen
Linux distros with ini files that don't do that. Setting TZ correctly
would require some non-trivial script work, and I'm guessing whoever did
the package did not want to do this work. They could of course just put
UTC there but that didn't happen either.
--
Stas Malyshev
smalyshev@gmail.com
I all,
On Mon, Feb 16, 2015 at 2:40 PM, Stanislav Malyshev smalyshev@gmail.com
wrote:
Are you sure that "the ini file is created by the package maintainer and
it includes the “date.timezone” setting" is true? Last time I checked itI my experience, it is unfortunately not universally true - I've seen
Linux distros with ini files that don't do that. Setting TZ correctly
would require some non-trivial script work, and I'm guessing whoever did
the package did not want to do this work. They could of course just put
UTC there but that didn't happen either.
I agree.
The difficulty is choosing the right one. Linux is multi user system and
users
may have their own locale settings. System's default and user's default may
differ
also. Distributor cannot choose the right timezone automatically.
If it's impossible to determine right one automatically, PHP shall have
reasonable default which would be UTC.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net
On Mon, Feb 16, 2015 at 2:40 PM, Stanislav Malyshev smalyshev@gmail.com
wrote:Are you sure that "the ini file is created by the package
maintainer and it includes the “date.timezone” setting" is true?
Last time I checked itI my experience, it is unfortunately not universally true - I've
seen Linux distros with ini files that don't do that. Setting TZ
correctly would require some non-trivial script work, and I'm
guessing whoever did the package did not want to do this work.
In an earlier thread I posted what Debian needed to do. It's trivial.
They could of course just put UTC there but that didn't happen
either.I agree.
The difficulty is choosing the right one. Linux is multi user system
and users may have their own locale settings. System's default and
user's default may differ also. Distributor cannot choose the right
timezone automatically.If it's impossible to determine right one automatically, PHP shall
have reasonable default which would be UTC.
The only reasonable thing is to let people chose what they want. That
means, we do not set the timezone by default.
If distribution maintainers want to pick something for their users,
that's fine, but I am vehemently against removing this warning.
cheers,
Derick