Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-27 Thread Pierre Joye
On Jan 27, 2015 4:36 PM, "Derick Rethans" wrote: > > On Tue, 27 Jan 2015, Pierre Joye wrote: > > > On Jan 27, 2015 11:25 AM, "Yasuo Ohgaki" wrote: > > > > > > On Tue, Jan 27, 2015 at 12:56 PM, Kalle Sommer Nielsen > > > wrote: > > > > > > > I think the warning is fair as it is, if it is annoying

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-27 Thread Matteo Beccati
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

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-27 Thread Bob Weinand
> Am 27.01.2015 um 16:27 schrieb Matteo Beccati : > > On 27/01/2015 15:12, Bob Weinand wrote: >> If you use the distros default, it often is UTC too. Then we have >> this same issue, just without warning. This warning often doesn't >> help at all, because it just doesn't appear at all. > > Well,

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-27 Thread Matteo Beccati
On 27/01/2015 15:12, Bob Weinand wrote: If you use the distros default, it often is UTC too. Then we have this same issue, just without warning. This warning often doesn't help at all, because it just doesn't appear at all. Well, if the distro sets display_errors = Off but doesn't also set a p

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-27 Thread Bob Weinand
> Am 27.01.2015 um 12:49 schrieb Matteo Beccati : > > On 27/01/2015 12:28, Nikita Popov wrote: >> So let the distros solve it ... and allow PHP to still be usable without an >> ini file. > > So, I install php from sources and (simulating the RFC): > > # php -d date.timezone='' -r 'var_dump(@date

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-27 Thread Matteo Beccati
On 27/01/2015 12:28, Nikita Popov wrote: So let the distros solve it ... and allow PHP to still be usable without an ini file. So, I install php from sources and (simulating the RFC): # php -d date.timezone='' -r 'var_dump(@date("Y-m-d H:i:s"));' string(19) "2015-01-27 11:39:43" # date Tue Jan

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-27 Thread Nikita Popov
On Tue, Jan 27, 2015 at 12:22 PM, Derick Rethans wrote: > > Everything else being there to simplify implementation of websites > > which anticipate a geographically narrow target audience? > > > > Anyway, I absolutely don't get why out of all the hundreds of ini > > settings that we have, some of

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-27 Thread Derick Rethans
On Tue, 27 Jan 2015, Nikita Popov wrote: > On Tue, Jan 27, 2015 at 7:40 AM, Matteo Beccati wrote: > > > On 27/01/2015 01:34, Bob Weinand wrote: > > > >> Hey, > >> > >> I'd like to request removal of the date.timezone warning. > >> > >> Here is the RFC: > >> https://wiki.php.net/rfc/date.timezone

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-27 Thread Derick Rethans
On Tue, 27 Jan 2015, Florian Anderiasch wrote: > On 01/27/2015 07:40 AM, Matteo Beccati wrote: > > On 27/01/2015 01:34, Bob Weinand wrote: > >> > >> I'd like to request removal of the date.timezone warning. > >> > >> Here is the RFC: > >> https://wiki.php.net/rfc/date.timezone_warning_removal >

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-27 Thread Derick Rethans
On Tue, 27 Jan 2015, Yasuo Ohgaki wrote: > While I can understand the reason behind opposition, but current web > is not bounded to local country. Most applications today logs time > using UTC and time stamp is converted whatever local time as needed, > isn't it? Of course, it depends on applic

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-27 Thread Lester Caine
On 27/01/15 10:24, Yasuo Ohgaki wrote: > While I can understand the reason behind opposition, but current web is not > bounded to local country. Most applications today logs time using UTC and > time stamp is converted whatever local time as needed, isn't it? Of course, > it depends on application

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-27 Thread Nikita Popov
On Tue, Jan 27, 2015 at 7:40 AM, Matteo Beccati wrote: > On 27/01/2015 01:34, Bob Weinand wrote: > >> Hey, >> >> I'd like to request removal of the date.timezone warning. >> >> Here is the RFC: >> https://wiki.php.net/rfc/date.timezone_warning_removal < >> https://wiki.php.net/rfc/date.timezone_w

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-27 Thread Florian Anderiasch
On 01/27/2015 07:40 AM, Matteo Beccati wrote: > On 27/01/2015 01:34, Bob Weinand wrote: >> Hey, >> >> I'd like to request removal of the date.timezone warning. >> >> Here is the RFC: >> https://wiki.php.net/rfc/date.timezone_warning_removal >>

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-27 Thread Yasuo Ohgaki
Hi all, While I can understand the reason behind opposition, but current web is not bounded to local country. Most applications today logs time using UTC and time stamp is converted whatever local time as needed, isn't it? Of course, it depends on application though. Having UTC as the default make

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-27 Thread Lester Caine
On 27/01/15 07:11, Sebastian Bergmann wrote: >> The warning is certainly annoying, but making it default to UTC or a wrong >> > timezone because the right one can't be guessed is a major WTF. > Couldn't agree more; -1 for removing the warning. Ditto The warning is a pain but only where the timezo

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-27 Thread Derick Rethans
On Tue, 27 Jan 2015, Matteo Beccati wrote: > On 27/01/2015 01:34, Bob Weinand wrote: > > > > I'd like to request removal of the date.timezone warning. > > > > Here is the RFC: > > https://wiki.php.net/rfc/date.timezone_warning_removal > >

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-27 Thread Derick Rethans
On Tue, 27 Jan 2015, Pierre Joye wrote: > On Jan 27, 2015 11:25 AM, "Yasuo Ohgaki" wrote: > > > > On Tue, Jan 27, 2015 at 12:56 PM, Kalle Sommer Nielsen > > wrote: > > > > > I think the warning is fair as it is, if it is annoying for small > > > use cases like on the CLI then simply: php -d dat

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-27 Thread Derick Rethans
On Tue, 27 Jan 2015, Bob Weinand wrote: > I'd like to request removal of the date.timezone warning. > > Here is the RFC: > https://wiki.php.net/rfc/date.timezone_warning_removal > Absolutely not. cheers, Derick -- PHP Internals - PHP R

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-26 Thread Sebastian Bergmann
Am 27.01.2015 um 07:40 schrieb Matteo Beccati: > The warning is certainly annoying, but making it default to UTC or a wrong > timezone because the right one can't be guessed is a major WTF. Couldn't agree more; -1 for removing the warning. -- PHP Internals - PHP Runtime Development Mailing List

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-26 Thread Matteo Beccati
On 27/01/2015 01:34, Bob Weinand wrote: Hey, I'd like to request removal of the date.timezone warning. Here is the RFC: https://wiki.php.net/rfc/date.timezone_warning_removal The warning is certainly annoying, but making it default to

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-26 Thread Pierre Joye
On Jan 27, 2015 11:25 AM, "Yasuo Ohgaki" wrote: > > Hi Kalle and all, > > On Tue, Jan 27, 2015 at 12:56 PM, Kalle Sommer Nielsen > wrote: > > > I think the warning is fair as it is, if it is annoying for small use > > cases like on the CLI then simply: php -d date.timezone=UTC -r "echo > > date('

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-26 Thread Yasuo Ohgaki
Hi Kalle and all, On Tue, Jan 27, 2015 at 12:56 PM, Kalle Sommer Nielsen wrote: > I think the warning is fair as it is, if it is annoying for small use > cases like on the CLI then simply: php -d date.timezone=UTC -r "echo > date('H:i:s');" or the dirty way by using the silent operator. It used

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-26 Thread Kalle Sommer Nielsen
Hi 2015-01-27 1:34 GMT+01:00 Bob Weinand : > Hey, > > I'd like to request removal of the date.timezone warning. > > Here is the RFC: > https://wiki.php.net/rfc/date.timezone_warning_removal > > > Bob I think the warning is fair as it is, i

Re: [PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-26 Thread Yasuo Ohgaki
HI Bob, On Tue, Jan 27, 2015 at 9:34 AM, Bob Weinand wrote: > > I'd like to request removal of the date.timezone warning. > > Here is the RFC: > https://wiki.php.net/rfc/date.timezone_warning_removal Nice RFC. I would like to remove the warning, too. Setting it to UTC without warning sounds rea

[PHP-DEV] [RFC] Remove the date.timezone warning

2015-01-26 Thread Bob Weinand
Hey, I'd like to request removal of the date.timezone warning. Here is the RFC: https://wiki.php.net/rfc/date.timezone_warning_removal Bob