[PHP-DEV] Re: [RFC]: Allow static properties in enums

2021-05-30 Thread tyson andre
Hi internals, > I've created a new RFC https://wiki.php.net/rfc/enum_allow_static_properties > > Although enums are immutable objects, it is often useful to have functions or > methods that operate on enum instances. > In many cases, it would make sense to declare that functionality as static >

[PHP-DEV] DateTimeZone silently falls back to UTC when providing seconds

2021-05-30 Thread Benjamin Morel
Hi internals, An issue was brought up on my date-time library, that boils down to the fact that DateTimeZone silently falls back to UTC when providing an offset with seconds: (new DatetimeZone('+01:45:30'))->getName(); // 00:00 https://3v4l.org/9ZrK

Re: [PHP-DEV] DateTimeZone silently falls back to UTC when providing seconds

2021-05-30 Thread Derick Rethans
On 30 May 2021 22:45:12 BST, Benjamin Morel wrote: >Hi internals, > >An issue was brought up >on >my date-time library, that boils down to the fact that DateTimeZone >silently falls back to UTC when providing an offset with seconds: > >(new DatetimeZo

Re: [PHP-DEV] DateTimeZone silently falls back to UTC when providing seconds

2021-05-30 Thread Benjamin Morel
> > I can't think of why this couldn't work. Duke a bug report please at > bugs.php.net? Before doing so, shouldn't we discuss whether it makes sense to accept a time-zone offset with seconds, when the granularity seems to be 15 mins? https://en.wikipedia.org/wiki/List_of_UTC_time_offsets — Be

Re: [PHP-DEV] DateTimeZone silently falls back to UTC when providing seconds

2021-05-30 Thread Derick Rethans
On 30 May 2021 23:18:31 BST, Benjamin Morel wrote: >> >> I can't think of why this couldn't work. Duke a bug report please at >> bugs.php.net? > > >Before doing so, shouldn't we discuss whether it makes sense to accept >a >time-zone offset with seconds, when the granularity seems to be 15 >mins? >