Deprecating DateTime::ISO8601 / DATE_ISO8601

php.internals

Niklas Keller

9 years ago
Hey, can we please deprecate DateTime::ISO8601 / DATE_ISO8601 so we can change them to the proper format in a later version? It's really ridiculous. Regards, Niklas

Andreas Heigl

9 years ago
Am 22.06.17 um 12:08 schrieb Niklas Keller:
> Hey, > > can we please deprecate DateTime::ISO8601 / DATE_ISO8601 so we can change > them to the proper format in a later version? It's really ridiculous. > > Regards, Niklas >
IMHO deprecating means we remove something, which we do not want to do (Or do we?). I'd rather see a BC-break in PHP NEXT and change it then to the propper format… We might now introduce a new Constant that maps the current constant so that people can still use the format later… That also allows a codebase-wide search-and-replace of DateTime::ISO8601 to that new constant so the functionality can be kept as-is without much hassle. Just my 0.02 € Cheers Andreas
-- ,,, (o o) +---------------------------------------------------------ooO-(_)-Ooo-+ | Andreas Heigl | | mailto:andreas@heigl.org N 50°22'59.5" E 08°23'58" | | http://andreas.heigl.org http://hei.gl/wiFKy7 | +---------------------------------------------------------------------+ | http://hei.gl/root-ca | +---------------------------------------------------------------------+

Derick Rethans

9 years ago
On Thu, 22 Jun 2017, Niklas Keller wrote:
> Hey, > > can we please deprecate DateTime::ISO8601 / DATE_ISO8601 so we can change > them to the proper format in a later version? It's really ridiculous.
No, we can not remove this. cheers, Derick

Niklas Keller

9 years ago
2017-06-22 12:32 GMT+02:00 Derick Rethans <derick@php.net>:
> On Thu, 22 Jun 2017, Niklas Keller wrote: > > > Hey, > > > > can we please deprecate DateTime::ISO8601 / DATE_ISO8601 so we can change > > them to the proper format in a later version? It's really ridiculous. > > No, we can not remove this. >
I didn't suggest to remove it, but to throw a deprecation notice to alert people currently using it that the format will be corrected in a later version. Regards, Niklas